config.sh #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Contracts | |
on: | |
push: | |
branches: | |
- alvarof2/contracts | |
workflow_dispatch: | |
jobs: | |
deploy-contracts: | |
runs-on: ubuntu-latest | |
permissions: # Must change the job token permissions to use Akeyless JWT auth | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.5 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
registry-url: https://registry.npmjs.org | |
cache: pnpm | |
- name: Setup foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install node dependencies | |
shell: bash | |
run: pnpm install:ci | |
#- name: Setup | |
# uses: ./.github/actions/setup | |
#- name: Setup foundry | |
# uses: foundry-rs/foundry-toolchain@v1 | |
- name: Akeyless get L1 URL | |
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest | |
with: | |
api-url: https://api.gateway.akeyless.celo-networks-dev.org | |
access-id: p-kf9vjzruht6l | |
static-secrets: '{"/static-secrets/devops-circle/alvaro-test-opstack-sepolia/l1-rpc-url":"L1_RPC_URL"}' | |
- name: Akeyless get GS ADMIN private key | |
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest | |
with: | |
api-url: https://api.gateway.akeyless.celo-networks-dev.org | |
access-id: p-kf9vjzruht6l | |
static-secrets: '{"/static-secrets/devops-circle/alvaro-test-opstack-sepolia/gs-admin-private-key":"GS_ADMIN_PRIVATE_KEY"}' | |
- name: Deploy L1 contracts | |
run: | | |
export IMPL_SALT=$(openssl rand -hex 32) | |
cd packages/contracts-bedrock | |
./scripts/getting-started/config.sh | |
forge script scripts/Deploy.s.sol:Deploy --private-key $GS_ADMIN_PRIVATE_KEY --rpc-url $L1_RPC_URL --slow | |
# --broadcast | |
env: | |
L1_RPC_KIND: alchemy | |
DEPLOYMENT_CONTEXT: getting-started | |
GS_ADMIN_ADDRESS: '0x19c1696408E63d670ab8177bfafB0D37e9F3ed82' |