Skip to content

Commit

Permalink
build: align ci to scaffold / remove non-semver-tags for go-releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Aug 10, 2023
1 parent 6de49d8 commit 7837d6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
with:
fetch-depth: 0

- name: Remove non-semver tags (from helmchart) for goreleaser to work properly
run: |
git tag -d $(git tag -l | grep -v "^v[0-9]*.[0-9]*.[0-9]*")
- uses: actions/setup-go@v4
with:
go-version: '^1.20.0'
Expand Down Expand Up @@ -70,6 +74,10 @@ jobs:
with:
fetch-depth: 0

- name: Remove non-semver tags (from helmchart) for goreleaser to work properly
run: |
git tag -d $(git tag -l | grep -v "^v[0-9]*.[0-9]*.[0-9]*")
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -99,6 +107,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
build-args: |
BUILD_SNAPSHOT=${{ !startsWith(github.ref, 'refs/tags/') }}
NAME=${{ github.repository }}
VERSION=${{ steps.meta.outputs.version }}
REVISION=${{ github.sha }}
Expand Down

0 comments on commit 7837d6d

Please sign in to comment.