Skip to content

feat: ✨ Added all new OMAPs for HRA 2.1 plus 2.0 where missi… #49

feat: ✨ Added all new OMAPs for HRA 2.1 plus 2.0 where missi…

feat: ✨ Added all new OMAPs for HRA 2.1 plus 2.0 where missi… #49

name: 'Production API Build'
on:
push:
branches: [main]
jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
- 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: ${{ secrets.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: asctb-api
IMAGE_TAG: latest
working-directory: asctb-api
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG