File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,20 @@ jobs:
6060 name : app-jar
6161 path : target/
6262
63+ - name : Create docker version tag
64+ id : docker-version
65+ run : |
66+ # replace '/' by '-' for docker tags
67+ docker_tag="${{ needs.build-snapshot.outputs.branch }}"
68+ docker_tag=$(echo "$docker_tag" | sed 's/[\/+]/-/g')
69+ echo "docker_tag=${docker_tag}" >> $GITHUB_ENV
70+
6371 - name : Publish to Docker Hub
6472 uses : elgohr/Publish-Docker-Github-Action@v5
6573 with :
6674 name : inseefr/genesis-api
6775 username : ${{ secrets.DOCKERHUB_USERNAME }}
6876 password : ${{ secrets.DOCKERHUB_TOKEN }}
69- tags : " snapshot-${{ needs.build-snapshot.outputs.branch }}"
77+ default_branch : ${{ github.ref }}
78+ tags : " snapshot-${{ env.docker_tag }}"
7079 workdir : .
You can’t perform that action at this time.
0 commit comments