Skip to content

Commit

Permalink
ci: Restore Docker versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Oct 13, 2022
1 parent 2e5b018 commit a1aaa9b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
release-binary:
name: "Release Binary"
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.set-version.outputs.VERSION }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -56,6 +58,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set version number
id: set-version
run: |
VERSION=$( git describe --tags ${{ github.sha }})
echo ::set-output name=VERSION::"$VERSION"
release-docker:
name: "Release Docker image"
needs: release-binary
Expand Down Expand Up @@ -104,7 +112,7 @@ jobs:
flavor: |
latest=auto
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
type=raw,value=production-latest
type=sha,format=long
labels: |
Expand Down

0 comments on commit a1aaa9b

Please sign in to comment.