Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only

name: Production Deployment
on:
release:
types: [published]

jobs:
build:
name: Production Deployment
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: kciter/aws-ecr-action@v4
with:
access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
region: ${{ secrets.PROD_AWS_REGION }}
repo: ${{ secrets.PROD_ECR_REPOSITORY }}
tags: ${{ github.event.release.tag_name }}
create_repo: false
- run: 'echo "$PROD_HELM_VALUES" > helm/values.yaml'
shell: bash
env:
PROD_HELM_VALUES: ${{secrets.PROD_HELM_VALUES}}
- name: AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.PROD_AWS_REGION }}
- name: helm deploy
uses: koslib/helm-eks-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.PROD_KUBE_CONFIG_DATA }}
with:
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
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only

name: Release Staging
name: Staging Deployment
on:
push:
branches:
- 'main'

jobs:
build:
name: Release Staging
name: Staging Deployment
runs-on: ubuntu-20.04
steps:
- name: Checkout code
Expand All @@ -20,7 +20,7 @@ jobs:
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
region: ${{ secrets.STAGE_AWS_REGION }}
repo: ${{ secrets.ECR_REPOSITORY }}
repo: ${{ secrets.STAGE_ECR_REPOSITORY }}
tags: stage
create_repo: false
- run: 'echo "$STAGE_HELM_VALUES" > helm/values.yaml'
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only

name: Release
on:
push:
branches:
- main

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
with:
release-type: go