Skip to content

Commit

Permalink
Remove -alpha from all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed May 17, 2024
1 parent 0cbcab3 commit cc9351b
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/release-stable-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,24 @@ jobs:
- name: Push stable image
run: |
docker pull matterlabs/external-node:${{ inputs.tag_name }}-alpha
docker tag matterlabs/external-node:${{ inputs.tag_name }}-alpha \
matterlabs/external-node:${{ inputs.tag_name }}
docker push matterlabs/external-node:${{ inputs.tag_name }}
docker_repositories=("matterlabs/external-node" "us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/external-node")
platforms=linux/amd64,linux/arm64
tag_name="${{ inputs.tag_name }}"
for repo in "${docker_repositories[@]}"; do
platform_tags=""
for platform in ${platforms//,/ }; do
platform=$(echo $platform | tr '/' '-')
alpha_tag="${repo}:${tag_name}-alpha-${platform}"
tag="${repo}:${tag_name}-${platform}"
docker pull $alpha_tag
docker tag $alpha_tag $tag
docker push $tag
platform_tags+=" --amend $tag"
done
echo $platform_tags
for manifest in "${repo}:${tag_name}" "${repo}:2.0-${tag_name}"; do
docker manifest create ${manifest} ${platform_tags}
docker manifest push ${manifest}
done
done

0 comments on commit cc9351b

Please sign in to comment.