-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci) update directory name in dockerfile
fix(ci) update go version in CI/CD to match go.mod fix(ci) restore manifests target in Makefile feat(ci) update setup-go github action feat(ci) use makefile targets feat(ci) format .github files feat(makefile) Remove unused gomplate feat(makefile) Add make-lint target feat(makefile) Create binaries folder when necessary feat(dockerfile) Copy all file at once feat(dockerfile) use single make command Signed-off-by: Pierre Péronnet <pierre.peronnet@ovhcloud.com>
- Loading branch information
Showing
7 changed files
with
141 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,31 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'v*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Unshallow | ||
# required for the changelog to work correctly | ||
run: git fetch --prune --unshallow | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
- | ||
name: prepare changelog | ||
run: | | ||
tag=${{ github.ref }} | ||
tag=${tag##*/} | ||
cat <<EOF | tee /tmp/release.txt | ||
## Docker images | ||
- uses: actions/checkout@v2 | ||
- # required for the changelog to work correctly | ||
run: git fetch --prune --unshallow | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14 | ||
- name: prepare changelog | ||
run: | | ||
tag=${{ github.ref }} | ||
tag=${tag##*/} | ||
cat <<EOF | tee /tmp/release.txt | ||
## Docker images | ||
- \`docker pull goharbor/harbor-operator:$tag\` | ||
EOF | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: v0.129.0 | ||
args: release --rm-dist --release-footer /tmp/release.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- \`docker pull goharbor/harbor-operator:$tag\` | ||
EOF | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: v0.129.0 | ||
args: release --rm-dist --release-footer /tmp/release.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.