From 232eb789657f87b5ef94ae3f0dd1fefaf8b847fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dan?= Date: Thu, 10 Aug 2023 12:14:42 +0200 Subject: [PATCH] ci: add devnet-1 deploy job --- .github/workflows/docker_build_push.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker_build_push.yml b/.github/workflows/docker_build_push.yml index 944e9e6..127c5e3 100644 --- a/.github/workflows/docker_build_push.yml +++ b/.github/workflows/docker_build_push.yml @@ -3,7 +3,6 @@ name: Docker_build_push on: release: types: [created] - workflow_dispatch: env: REGISTRY: ghcr.io @@ -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 @@ -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/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 ${{ github.event.release.name }}