diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4864f251..7d191339 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}