Skip to content

Commit

Permalink
Merge branch 'main' into rusty-zcash_script
Browse files Browse the repository at this point in the history
  • Loading branch information
mpguerra authored Aug 14, 2024
2 parents f80b392 + a575576 commit d5cbe2f
Show file tree
Hide file tree
Showing 33 changed files with 589 additions and 263 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# TODO we should implement the fixes from https://github.com/ZcashFoundation/zebra/pull/5670 here
# but the implementation is failing as it's requiring the disk names, contrary to what is stated in the official documentation
Expand Down Expand Up @@ -330,14 +329,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Create instance template from container image
- name: Manual deploy of a single ${{ inputs.network }} instance running zebrad
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/chore-delete-gcp-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Deletes all mainnet and testnet instances older than $DELETE_INSTANCE_DAYS days.
#
Expand Down Expand Up @@ -114,9 +113,8 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
token_format: 'access_token'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-unit-tests-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ jobs:
- uses: r7kamura/[email protected]

- name: Check ${{ matrix.checks }} with features ${{ matrix.features }}
uses: EmbarkStudios/cargo-deny-action@v1
uses: EmbarkStudios/cargo-deny-action@v2
with:
# --all-features spuriously activates openssl, but we want to ban that dependency in
# all of zebrad's production features for security reasons. But the --all-features job is
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/docs-deploy-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_FIREBASE_SA }}'

Expand Down Expand Up @@ -165,9 +164,8 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_FIREBASE_SA }}'

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/manual-zcashd-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Create instance template from container image
- name: Create instance template
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sub-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
permissions:
contents: 'read'
id-token: 'write'
env:
DOCKER_BUILD_SUMMARY: ${{ vars.DOCKER_BUILD_SUMMARY }}
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -122,9 +124,8 @@ jobs:
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_ARTIFACTS_SA }}'
token_format: 'access_token'
Expand Down Expand Up @@ -158,7 +159,7 @@ jobs:
# Build and push image to Google Artifact Registry, and possibly DockerHub
- name: Build & push
id: docker_build
uses: docker/build-push-action@v6.5.0
uses: docker/build-push-action@v6.6.0
with:
target: ${{ inputs.dockerfile_target }}
context: .
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/sub-deploy-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Find a cached state disk for this job, matching all of:
# - disk cached state (lwd_state_dir/zebra_state_dir or disk_prefix) - zebrad-cache or lwd-cache
Expand Down Expand Up @@ -450,13 +449,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Get the state version from the local constants.rs file to be used in the image creation,
# as the state version is part of the disk image name.
Expand Down Expand Up @@ -727,13 +726,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Deletes the instances that has been recently deployed in the actual commit after all
# previous jobs have run, no matter the outcome of the job.
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sub-find-cached-disks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].3
uses: google-github-actions/[email protected].4
with:
retries: '3'
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].0
uses: google-github-actions/[email protected].1

# Disk images in GCP are required to be in lowercase, but the blockchain network
# uses sentence case, so we need to downcase ${{ inputs.network }}
Expand Down
Loading

0 comments on commit d5cbe2f

Please sign in to comment.