@@ -107,8 +107,7 @@ jobs:
107
107
username : ${{ github.actor }}
108
108
password : ${{ secrets.GITHUB_TOKEN }}
109
109
110
- # Extract metadata (tags, labels) for Docker
111
- # https://github.com/docker/metadata-action
110
+ # We extract metadata without tags for single image
112
111
- name : Extract Docker metadata
113
112
id : meta
114
113
@@ -117,12 +116,8 @@ jobs:
117
116
# <registry/<owner>/<repo_name>/<repo_name>-<target>
118
117
images : |
119
118
${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
120
- # generate Docker tags based on the following events/attributes
121
- tags : |
122
- type=sha,suffix=-${{ env.PLATFORM_PAIR }}
123
119
124
- # Build and push Docker image with Buildx by digest
125
- # https://github.com/docker/build-push-action
120
+ # This build an image WITHOUT tags and outputs the digests, so that we can aggragate them later
126
121
- name : Build and push production image
127
122
id : build-and-push
128
123
@@ -131,7 +126,7 @@ jobs:
131
126
target : ${{ matrix.docker_target }}
132
127
platforms : ${{ matrix.arch.platform }}
133
128
outputs : type=image,push-by-digest=true,name-canonical=true,push=true
134
- tags : ${{ steps.meta.outputs.tags }}
129
+ tags : ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
135
130
labels : ${{ steps.meta.outputs.labels }}
136
131
cache-from : type=gha
137
132
cache-to : type=gha,mode=max
0 commit comments