Skip to content

Commit e0433ce

Browse files
committed
feat: spartan/bootstrap.sh network_deploy
1 parent 6107786 commit e0433ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1408
-1462
lines changed

.github/actions/setup-k8s-terraform/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,17 @@ runs:
6666
ref: ${{ inputs.ref }}
6767

6868
- name: Authenticate to Google Cloud
69+
if: ${{ inputs.cluster != 'kind' }}
6970
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f
7071
with:
7172
credentials_json: ${{ inputs.gcp_sa_key }}
7273

7374
- name: Set up Cloud SDK
75+
if: ${{ inputs.cluster != 'kind' }}
7476
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a
7577

7678
- name: Install GKE Auth Plugin
79+
if: ${{ inputs.cluster != 'kind' }}
7780
shell: bash
7881
run: |
7982
gcloud components install gke-gcloud-auth-plugin --quiet

.github/local_workflow.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ fi
3030
shift
3131
args=("$@")
3232

33+
# Only needed when running against GKE
3334
SA_KEY_JSON=$(cat "$GOOGLE_APPLICATION_CREDENTIALS")
3435

3536
mkdir -p $REPO_ROOT/.github/.act-tool-cache
3637

37-
act workflow_dispatch -j $workflow_name \
38+
act -j $workflow_name \
3839
--env RUNNER_TOOL_CACHE=/work/toolcache \
3940
-s GITHUB_TOKEN="$(gh auth token)" \
4041
-s GCP_SA_KEY="$SA_KEY_JSON" \

.github/workflows/ci3.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
# (github.event.pull_request.head.repo.fork resolves to nil if not a pull request)
2626
if: github.event.pull_request.head.repo.fork != true && github.event.pull_request.draft == false
2727
environment: ${{ startsWith(github.ref, 'refs/tags/v') && 'master' || '' }}
28+
env:
29+
GOOGLE_APPLICATION_CREDENTIALS: /tmp/gcp-key.json
2830
steps:
2931
#############
3032
# Prepare Env
@@ -89,12 +91,9 @@ jobs:
8991
chmod 600 ~/.ssh/build_instance_key
9092
sudo apt install -y --no-install-recommends redis-tools parallel
9193
92-
- name: Prepare GCP key
93-
env:
94-
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
94+
- name: Write GCP key into credentials file
9595
run: |
96-
echo "$GCP_SA_KEY" | base64 -w 0 > gcp_sa_key.b64
97-
echo "GCP_SA_KEY_B64=$(cat gcp_sa_key.b64)" >> $GITHUB_ENV
96+
echo "${{ secrets.GCP_SA_KEY }}" > ${{ env.GOOGLE_APPLICATION_CREDENTIALS }}
9897
9998
- name: Get Tree Hash
10099
run: echo "TREE_HASH=$(git rev-parse HEAD^{tree})" >> $GITHUB_ENV
@@ -122,7 +121,7 @@ jobs:
122121
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
123122
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
124123
# Nightly test env vars.
125-
GCP_SA_KEY_B64: ${{ env.GCP_SA_KEY_B64 }}
124+
GOOGLE_APPLICATION_CREDENTIALS: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }}
126125
EXTERNAL_ETHEREUM_HOSTS: "https://json-rpc.${{ secrets.GCP_SEPOLIA_URL }}?key=${{ secrets.GCP_SEPOLIA_API_KEY }},${{ secrets.INFURA_SEPOLIA_URL }}"
127126
EXTERNAL_ETHEREUM_CONSENSUS_HOST: "https://beacon.${{ secrets.GCP_SEPOLIA_URL }}"
128127
EXTERNAL_ETHEREUM_CONSENSUS_HOST_API_KEY: ${{ secrets.GCP_SEPOLIA_API_KEY }}

.github/workflows/deploy-aztec-infra.yml

Lines changed: 0 additions & 277 deletions
This file was deleted.

0 commit comments

Comments
 (0)