Skip to content

Commit

Permalink
deploy testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecp88 committed Sep 25, 2023
1 parent 7f36d4c commit 7831434
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ fi
# NIXPKGS_ALLOW_INSECURE=1
# use flake --impure
use flake

export PATH="$PATH:/usr/bin:/bin:/usr/sbin:/usr/local/bin"
export PATH="$PATH:/Users/cejas/google-cloud-sdk/bin"
47 changes: 47 additions & 0 deletions .github/workflows/on_merge_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Deploying Rollup Data Availability"

on:
push:
branches:
- cejas/playground

env:
REGION: "us-central1"

jobs:
git-submodules-update:
name: "Sync the git submodules"
runs-on:
group: ubuntu-4cpu-16gb
#runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
token: ${{ secrets.CEJAS_PERSONAL_ACCESS_TOKEN }}

- name: Login to Artifact Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGION }}-docker.pkg.dev
username: _json_key
password: ${{ secrets.CI_ROLLUP_DATA_AVAIL_SA_DEV_KEY }}

- name: Build "l1" Docker image and push to Google Artifact Registry
uses: docker/build-push-action@v5
with:
context: ./op-stack/optimism/ops-bedrock
push: true
file: ./op-stack/optimism/ops-bedrock/Dockerfile.l1
tags: "us-docker.pkg.dev/pagoda-solutions-dev/rollup-data-availability/l1:${{ github.run_attempt }}-${{ github.sha }}"
secrets: |
GIT_AUTH_TOKEN=${{ secrets.CEJAS_PERSONAL_ACCESS_TOKEN }}
# build-and-push-l1:
# name: "Build and push L1 image"
# needs: git-submodules-update
# runs-on: ubuntu-latest
#
# steps:
12 changes: 6 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[submodule "op-stack/optimism"]
path = op-stack/optimism
url = git@github.com:dndll/optimism.git
url = https://github.com/dndll/optimism.git
[submodule "op-stack/openrpc"]
path = op-stack/openrpc
url = git@github.com:dndll/near-openrpc.git
path = op-stack/openrpc
url = https://github.com/dndll/near-openrpc.git
branch = near
[submodule "op-stack/optimism-rs"]
path = op-stack/optimism-rs
url = git@github.com:dndll/magi.git
url = https://github.com/dndll/magi.git
[submodule "bin/light-client"]
path = bin/light-client
url = git@github.com:near/near-light-client.git
path = bin/light-client
url = https://github.com/near/near-light-client.git

0 comments on commit 7831434

Please sign in to comment.