diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index d38a9db..b21a79a 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -16,20 +16,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: | - ${{ github.repository }} - tags: | - type=semver,pattern={{version}},prefix=v - type=semver,pattern={{major}}.{{minor}},prefix=v - type=semver,pattern={{major}},prefix=v - type=ref,event=branch - type=ref,event=pr - flavor: | - latest=auto + - name: Get version tag + id: next-version + run: | + echo "next-version=$(git-sv next-version)" >> $GITHUB_OUTPUT - name: Build and push uses: https://code.252.no/tommy/kaniko-action@latest @@ -38,7 +28,7 @@ jobs: context: /workspace/${{ github.repository }} credentials: | code.252.no=${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} - destinations: "code.252.no/tommy/mbpfan:${{ steps.meta.outputs.tags }}" + destinations: "code.252.no/tommy/mbpfan:${{ steps.next-version.outputs.next-version }}" push: 'true'