Skip to content

Commit

Permalink
ci: add devnet-1 deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Aug 10, 2023
1 parent 0da9d38 commit 8d0b331
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Docker_build_push
on:
release:
types: [created]
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -55,3 +54,24 @@ jobs:
type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.workflow }}
type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-main-${{ github.workflow }}
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.workflow }},mode=max

devnet-1:
name: Deploy to devnet-1
runs-on: ubuntu-latest
needs: docker
environment: devnet-1
steps:
- name: Configure AWS credentials for devnet-1 account
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 }}
# role-to-assume: arn:aws:iam::268276581508:role/ExplorerBucketAccessRole
# role-session-name: Terraform-RobotToposware-session
aws-region: us-east-1
role-skip-session-tagging: true
role-duration-seconds: 3600

- name: Update elasticbeanstalk dapp-frontend-erc20 production environment
run: |
aws elasticbeanstalk update-environment --application-name dapp-frontend-erc20 --environment-name production --version-label ${{ steps.meta.outputs.tags }}

0 comments on commit 8d0b331

Please sign in to comment.