Skip to content

Commit

Permalink
Deploy Arbitrum Sepolia graph, and whitespace commit
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Aug 27, 2024
1 parent eac1806 commit d843993
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/deploy-arb-sepolia-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy Arbitrum Sepolia graph

on:
push:
branches:
- development
paths:
- 'lib/**'
- 'cmd/graphql.ethereum/**'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Checkout code
uses: actions/checkout@v2

- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21.1'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y zip
- name: Build lambda zip
run: |
cd cmd/graphql.ethereum
make lambda
- name: Deploy to AWS Lambda
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-southeast-2
run: |
aws lambda update-function-code --function-name arb-sepolia-graph \
--zip-file fileb://cmd/graphql.ethereum/bootstrap.zip >&2 >/dev/null
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy GraphQL Lambda
name: Deploy SPN Testnet Longtail graph

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion cmd/graphql.ethereum/pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
//go:embed pools.toml
var poolsConfigBytes []byte

// PoolsConfig loaded from pools.toml in the toplevel
// PoolsConfig loaded from pools.toml in the toplevel.
var PoolsConfig map[types.Address]config.Pool

func init() {
Expand Down

0 comments on commit d843993

Please sign in to comment.