This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
Fix ERC20 error due to newly deployed SELFDESTRUCT contracts (#805) #155
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: Deployments | |
on: | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
network: [testnet] | |
env: | |
ACCOUNT_ADDRESS: ${{ secrets.ACCOUNT_ADDRESS }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
RPC_KEY: ${{ secrets.RPC_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9.13 | |
- name: Load cached Poetry installation | |
id: cached-poetry | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local | |
key: poetry-${{ runner.os }} | |
- name: Install Poetry | |
if: steps.cached-poetry.outputs.cache-hit != 'true' | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- run: poetry config installer.modern-installation false | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: make setup | |
- name: Deploy | |
run: STARKNET_NETWORK=${{ matrix.network }} make deploy | |
- name: Store deployment artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./deployments/ | |
name: deployments | |
build_and_push_deployer: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
tags: ghcr.io/kkrt-labs/kakarot/deployer:latest | |
context: . | |
file: ./docker/deployer/Dockerfile | |
platforms: linux/amd64,linux/arm64 |