Skip to content

Commit

Permalink
better way to get the version
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoLeist committed Mar 26, 2024
1 parent 055c21f commit a66163e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:

- name: push the image
run: |
version=$(ls ${GITHUB_WORKSPACE}/phenoRankeR/deploy/*.tar.gz | sed 's/.*_\(.*\)\.tar\.gz/\1/')
version=$(grep -oP 'Version: \K.*' ${GITHHUB_WORKSPACE}/phenoRankeR/DESCRIPTION)
docker tag phenorankerui:${version} ${{ secrets.DOCKERHUB_USERNAME }}/pheno-ranker-ui:${version}
docker push ${{ secrets.DOCKERHUB_USERNAME }}/pheno-ranker-ui:${version}

0 comments on commit a66163e

Please sign in to comment.