Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

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 4271e5c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 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 All @@ -13,6 +12,8 @@ jobs:
docker:
name: Build and push docker image to GitHub Container Registry
runs-on: ubuntu-latest-16-core
outputs:
tags: ${{ steps.meta.outputs.tags }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -55,3 +56,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/Dapp-Frontend-Erc20EBAccessRole
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 ${{ github.event.release.name }}

0 comments on commit 4271e5c

Please sign in to comment.