Skip to content

Commit e297c1d

Browse files
committed
create both tag-specific and "latest" docker image, per git tag
1 parent bf49cc4 commit e297c1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030

3131
- name: Build and push docker image
3232
id: push
33-
run: ./scripts/build-docker.sh -t "${{ github.ref_name }}" -p
33+
run: |
34+
./scripts/build-docker.sh -t "${{ github.ref_name }}" -p
35+
docker tag "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}" "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
36+
docker push "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
3437
3538
- name: Get image digest
3639
id: digest

0 commit comments

Comments
 (0)