From ef4841b6e90d8f88d5288fac7a1a7a27796e023c Mon Sep 17 00:00:00 2001 From: project-defiant Date: Mon, 20 Jan 2025 17:30:33 +0100 Subject: [PATCH] fix: approach with bash --- .github/workflows/artifact.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml index 2694c20b3..4f75885b1 100644 --- a/.github/workflows/artifact.yml +++ b/.github/workflows/artifact.yml @@ -54,11 +54,7 @@ jobs: - name: Create a docker version tag id: docker-tag if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/v') - uses: actions/github-script@v7 - with: - script: | - console.log(context.ref); - return context.ref.replace('refs/tags/v', ''); + run: echo "TAG_VERSION=${v#${{ github.ref_name }}}" >> $GITHUB_ENV - name: Build and push gentropy image if: steps.docker-tag.outcome == 'success' @@ -66,7 +62,7 @@ jobs: with: platforms: linux/amd64,linux/arm64 push: true - tags: "${{ env.GAR_LOCATION }}/${{ env.REPOSITORY }}/gentropy:${{ steps.docker-tag.outputs.result }}" + tags: "${{ env.GAR_LOCATION }}/${{ env.REPOSITORY }}/gentropy:${{ env.TAG_VERSION}}" context: . - name: Build and push VEP image @@ -75,7 +71,7 @@ jobs: with: platforms: linux/amd64 push: true - tags: "${{ env.GAR_LOCATION }}/${{ env.REPOSITORY }}/custom_ensembl_vep:${{ steps.docker-tag.outputs.result }}" + tags: "${{ env.GAR_LOCATION }}/${{ env.REPOSITORY }}/custom_ensembl_vep:${{ env.TAG_VERSION}}" context: . file: "src/vep/Dockerfile"