Skip to content

Commit 7d17887

Browse files
feat: eth2 crawler configured with basic node information (#84)
* prod deployment pipeline added * env refactor * deployment test * revert test changes
1 parent 9fcd320 commit 7d17887

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2020 ChainSafe Systems
2+
# SPDX-License-Identifier: LGPL-3.0-only
3+
4+
name: Production Deployment
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
name: Production Deployment
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- uses: kciter/aws-ecr-action@v4
17+
with:
18+
access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
19+
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
20+
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
21+
region: ${{ secrets.PROD_AWS_REGION }}
22+
repo: ${{ secrets.PROD_ECR_REPOSITORY }}
23+
tags: ${{ github.event.release.tag_name }}
24+
create_repo: false
25+
- run: 'echo "$PROD_HELM_VALUES" > helm/values.yaml'
26+
shell: bash
27+
env:
28+
PROD_HELM_VALUES: ${{secrets.PROD_HELM_VALUES}}
29+
- name: AWS Credentials
30+
uses: aws-actions/configure-aws-credentials@v1
31+
with:
32+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
33+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
34+
aws-region: ${{ secrets.PROD_AWS_REGION }}
35+
- name: helm deploy
36+
uses: koslib/helm-eks-action@master
37+
env:
38+
KUBE_CONFIG_DATA: ${{ secrets.PROD_KUBE_CONFIG_DATA }}
39+
with:
40+
command: helm upgrade --install --create-namespace --namespace ${{ secrets.PROD_KUBE_NAMESPACE }} --set image.tag=${{ github.event.release.tag_name }} -f helm/values.yaml crawler helm/crawler
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Copyright 2020 ChainSafe Systems
22
# SPDX-License-Identifier: LGPL-3.0-only
33

4-
name: Release Staging
4+
name: Staging Deployment
55
on:
66
push:
77
branches:
88
- 'main'
99

1010
jobs:
1111
build:
12-
name: Release Staging
12+
name: Staging Deployment
1313
runs-on: ubuntu-20.04
1414
steps:
1515
- name: Checkout code
@@ -20,7 +20,7 @@ jobs:
2020
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2121
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
2222
region: ${{ secrets.STAGE_AWS_REGION }}
23-
repo: ${{ secrets.ECR_REPOSITORY }}
23+
repo: ${{ secrets.STAGE_ECR_REPOSITORY }}
2424
tags: stage
2525
create_repo: false
2626
- run: 'echo "$STAGE_HELM_VALUES" > helm/values.yaml'

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2020 ChainSafe Systems
2+
# SPDX-License-Identifier: LGPL-3.0-only
3+
4+
name: Release
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
release-please:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: GoogleCloudPlatform/release-please-action@v2
15+
with:
16+
release-type: go

0 commit comments

Comments
 (0)