Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: release master dockerhub images #9117

Merged
merged 9 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 37 additions & 20 deletions .github/workflows/publish-aztec-packages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Aztec Packages

on:
push:
branches:
- master
workflow_dispatch:
inputs:
tag:
Expand Down Expand Up @@ -29,6 +32,7 @@ jobs:
steps:
- name: Check if tag is valid
id: check_tag
if: github.event_name == 'workflow_dispatch'
run: |
TAG=${{ github.event.inputs.tag }}
if [[ "$TAG" == aztec-packages-v* ]]; then
Expand Down Expand Up @@ -183,8 +187,14 @@ jobs:
- name: Publish aztec manifests
if: ${{ github.event.inputs.publish == 'true' }}
run: |
DEPLOY_TAG=${{ env.DEPLOY_TAG }}
VERSION=${DEPLOY_TAG#aztec-packages-v}
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
TAG=${{ env.DEPLOY_TAG }}
VERSION=${TAG#aztec-packages-v}
DIST_TAG=latest
else
VERSION=""
DIST_TAG=${{ github.ref_name }}
fi

docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}-x86_64
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}-arm64
Expand All @@ -193,34 +203,41 @@ jobs:
docker pull aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-x86_64
docker pull aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-arm64

docker manifest create aztecprotocol/aztec:$VERSION \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-arm64
docker manifest create aztecprotocol/aztec:latest \
# Create and push versioned manifest if a version is provided
if [ -n "$VERSION" ]; then
docker manifest create aztecprotocol/aztec:$VERSION \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/aztec:$VERSION

docker manifest create aztecprotocol/aztec-nargo:$VERSION \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/aztec-nargo:$VERSION

docker manifest create aztecprotocol/cli-wallet:$VERSION \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/cli-wallet:$VERSION
fi

docker manifest create aztecprotocol/aztec:$DIST_TAG \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/aztec:$VERSION
docker manifest push aztecprotocol/aztec:latest
docker manifest push aztecprotocol/aztec:$DIST_TAG

docker manifest create aztecprotocol/aztec-nargo:$VERSION \
docker manifest create aztecprotocol/aztec-nargo:$DIST_TAG \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-arm64
docker manifest create aztecprotocol/aztec-nargo:latest \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/aztec-nargo:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/aztec-nargo:$VERSION
docker manifest push aztecprotocol/aztec-nargo:latest
docker manifest push aztecprotocol/aztec-nargo:$DIST_TAG

docker manifest create aztecprotocol/cli-wallet:$VERSION \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-arm64
docker manifest create aztecprotocol/cli-wallet:latest \
docker manifest create aztecprotocol/cli-wallet:$DIST_TAG \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-x86_64 \
aztecprotocol/cli-wallet:${{ env.GIT_COMMIT }}-arm64
docker manifest push aztecprotocol/cli-wallet:$VERSION
docker manifest push aztecprotocol/cli-wallet:latest
docker manifest push aztecprotocol/cli-wallet:$DIST_TAG

publish-npm:
if: github.event_name == 'workflow_dispatch'
needs: publish-manifests
runs-on: ${{ github.actor }}-x86
env:
Expand Down
Loading