From 6d70bf670459259284d6556623f5d7e19b0cb552 Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Thu, 18 Jan 2024 21:16:57 +0100 Subject: [PATCH] Add version extraction step to release workflow Signed-off-by: Anton Engelhardt --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 }}