We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ab9e5 commit 4b053c9Copy full SHA for 4b053c9
1 file changed
.github/workflows/build.yml
@@ -165,6 +165,9 @@ jobs:
165
- name: Checkout code
166
uses: actions/checkout@v4
167
168
+ - name: Set up Docker Buildx
169
+ uses: docker/setup-buildx-action@v3
170
+
171
- name: Login to GitHub Container Registry
172
uses: docker/login-action@v3
173
with:
@@ -184,7 +187,6 @@ jobs:
184
187
185
188
- name: Retag and push the image
186
189
run: |
- docker pull "$DOCKER_APP_IMAGE"
- docker inspect "$DOCKER_APP_IMAGE"
- echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$DOCKER_APP_IMAGE"
190
- docker push --all-tags "$(echo "$DOCKER_APP_IMAGE" | cut -f1 -d:)"
+ docker buildx imagetools create
191
+ $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
192
+ "$(echo "$DOCKER_APP_IMAGE" | cut -f1 -d:)"
0 commit comments