Skip to content
Merged
Changes from all commits
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
17 changes: 16 additions & 1 deletion .github/workflows/nightly-masternet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,28 @@ concurrency:
cancel-in-progress: false

jobs:
get-latest-commit:
runs-on: ubuntu-latest
outputs:
commit: ${{ steps.get_commit.outputs.COMMIT }}

steps:
- uses: actions/checkout@v4

- name: Get latest published commit
id: get_commit
run: |
COMMIT=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/master | jq ".digest" | tr -d '"')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional suggestion to use raw mode to remove double quotes but works either way.

Suggested change
COMMIT=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/master | jq ".digest" | tr -d '"')
COMMIT=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/master | jq -r ".digest")

echo "COMMIT=$COMMIT" >> $GITHUB_OUTPUT

deploy-network:
needs: get-latest-commit
uses: ./.github/workflows/network-deploy.yml
with:
ref: master
namespace: masternet
values_file: rc-1.yaml
aztec_docker_image: aztecprotocol/aztec:master
aztec_docker_image: aztecprotocol/aztec@${{ needs.get-latest-commit.outputs.commit }}
deployment_mnemonic_secret_name: testnet-deployment-mnemonic
respect_tf_lock: "false"
run_terraform_destroy: "true"
Expand Down
Loading