Skip to content

Commit 984c1b5

Browse files
Update to the latest release pipeline
1 parent 3a51f70 commit 984c1b5

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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:)"

0 commit comments

Comments
 (0)