Skip to content

Commit

Permalink
fix: approach with bash
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonSzyszkowski committed Jan 20, 2025
1 parent 1dcc69e commit ef4841b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,15 @@ 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'
uses: docker/build-push-action@v6
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
Expand All @@ -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"

Expand Down

0 comments on commit ef4841b

Please sign in to comment.