We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b419cb commit a15101fCopy full SHA for a15101f
.github/workflows/docker.yaml
@@ -60,11 +60,20 @@ jobs:
60
name: app-jar
61
path: target/
62
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
+ $(echo "$docker_tag" | sed 's/[\/+]/-/g')
69
+ echo "docker_tag=${docker_tag}" >> $GITHUB_ENV
70
+
71
- name: Publish to Docker Hub
72
uses: elgohr/Publish-Docker-Github-Action@v5
73
with:
74
name: inseefr/genesis-api
75
username: ${{ secrets.DOCKERHUB_USERNAME }}
76
password: ${{ secrets.DOCKERHUB_TOKEN }}
- tags: "snapshot-${{ needs.build-snapshot.outputs.branch }}"
77
+ default_branch: ${{ github.ref }}
78
+ tags: "snapshot-${{ env.docker_tag }}"
79
workdir: .
0 commit comments