Skip to content

Commit 921f0d8

Browse files
committed
Fixing image push action
1 parent 01d332c commit 921f0d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish_the_release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: |
2525
test -n "${TAG}" || TAG=default
2626
IMAGE="argentoff/ocamqping"
27+
echo ::set-output name=image_repo::${IMAGE}
28+
echo ::set-output name=latest_image::${IMAGE}:latest
2729
echo ::set-output name=tagged_image::${IMAGE}:${TAG}
2830
echo ::set-output name=tag::${TAG}
2931
@@ -55,7 +57,7 @@ jobs:
5557
builder: ${{ steps.buildx.outputs.name }}
5658
file: Dockerfile
5759
push: false
58-
tags: ${{ steps.set_tag_name.outputs.tagged_image }},latest
60+
tags: ${{ steps.set_tag_name.outputs.tagged_image }},${{ steps.set_tag_name.outputs.latest_image }}
5961
cache-from: type=local,src=/tmp/.buildx-cache
6062
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
6163
pull: true
@@ -68,4 +70,4 @@ jobs:
6870
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
6971
7072
- name: Push image
71-
run: docker push ${{ steps.set_tag_name.outputs.tagged_image }}
73+
run: docker push ${{ steps.set_tag_name.outputs.image_repo }} --all-tags

0 commit comments

Comments
 (0)