Skip to content

Commit a15101f

Browse files
committed
feat: add docker images for genesis
1 parent 8b419cb commit a15101f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
$(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: .

0 commit comments

Comments
 (0)