Skip to content

Commit

Permalink
Add version extraction step to release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Jan 18, 2024
1 parent 3256a42 commit 6d70bf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Extract version from Github Ref
id: extract_version
run: |
echo VERSION=${echo ${{ github.ref }} | grep -o "v[0-9]\+\.[0-9]\+\.[0-9]\+"} >> $GITHUB_ENV
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: antonengelhardt/wasm-oidc-plugin:${{ github.ref }}
tags: antonengelhardt/wasm-oidc-plugin:${{ env.VERSION }}

0 comments on commit 6d70bf6

Please sign in to comment.