File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 env :
3838 BASE_IMAGE : ${{ steps.get-base-image.outputs.tags }}
3939 run : |
40- docker pull "$BASE_IMAGE"
40+ docker manifest inspect "$BASE_IMAGE"
4141
4242 - name : Produce release tags
4343 id : tag-meta
@@ -47,13 +47,15 @@ jobs:
4747 flavor : latest=false
4848 tags : |
4949 type=ref,event=tag
50- type=semver,pattern={{major}}
51- type=semver,pattern={{major}}.{{minor}}
52- type=semver,pattern={{version}}
50+ type=match,pattern=\d+
51+ type=match,pattern=\d+\.\d+
52+ type=match,pattern=\d+\.\d+\.\d+
53+ type=match,pattern=.*
5354
5455 - name : Retag the pulled image
5556 env :
5657 BASE_IMAGE : ${{ steps.get-base-image.outputs.tags }}
5758 run : |
58- echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$BASE_IMAGE"
59- docker push --all-tags "$(echo "$BASE_IMAGE" | cut -f1 -d:)"
59+ docker buildx imagetools create \
60+ $(jq -cr '.tags | map("--tag " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
61+ "$(echo "$BASE_IMAGE" | cut -f1 -d:)"
You can’t perform that action at this time.
0 commit comments