Skip to content

Commit c73dd99

Browse files
authored
Merge pull request #1450 from Anselmoo/Anselmoo-patch-2
build: ⚙️ Activate output in docker push
2 parents 402ae0b + edf1052 commit c73dd99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker-cd.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
uses: docker/[email protected]
5858
with:
5959
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
60-
tags: type=sha,format=long
60+
tags: |
61+
type=sha,format=long
62+
type=ref,event=branch,branch=main,tag=latest
6163
6264
- name: Build and Push container images
6365
uses: docker/[email protected]
@@ -69,7 +71,7 @@ jobs:
6971
labels: ${{ steps.docker_meta.outputs.labels }}
7072
cache-from: type=gha
7173
cache-to: type=gha,mode=max
72-
# outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=${{ fromJSON(steps.docker_meta.outputs.json).labels['org.opencontainers.image.description'] }}
74+
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=${{ fromJSON(steps.docker_meta.outputs.json).labels['org.opencontainers.image.description'] }}
7375

7476
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
7577
- name: Sign image with a key

0 commit comments

Comments
 (0)