Skip to content

Notification for refund and blocked duplicate refund vote (#261) #337

Notification for refund and blocked duplicate refund vote (#261)

Notification for refund and blocked duplicate refund vote (#261) #337

# This is a basic workflow to help you get started with Actions
name: DAPP-BUILD-ECR
on:
workflow_dispatch:
push:
branches:
- main
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-latest
env:
majorVersion: 0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure 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: us-east-2
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: public.ecr.aws/d7f4c0w8
IMAGE_TAG: ${{ env.majorVersion }}.${{ github.run_number }}.${{ github.run_attempt }}
run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/d7f4c0w8
docker build -t $ECR_REGISTRY/imbue-api:$IMAGE_TAG --build-arg $IMAGE_TAG .
docker push $ECR_REGISTRY/imbue-api:$IMAGE_TAG