Skip to content

fix (transaction-job): Fix an issue in which the degree-received chec… #4

fix (transaction-job): Fix an issue in which the degree-received chec…

fix (transaction-job): Fix an issue in which the degree-received chec… #4

Workflow file for this run

name: Build and Deploy email-job to AWS Lambda
on:
push:
branches:
- transaction-test
env:
DEPLOYMENT_ARN: ${{ secrets.DEPLOYMENT_ARN }}
REGION: ${{ secrets.REGION }}
DEPLOYMENT_NAME: transaction-job
jobs:
deploy:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.DEPLOYMENT_ARN }}
aws-region: ${{ env.REGION }}
- name: Login to Amazon ECR Private
id: ecr-login
uses: aws-actions/amazon-ecr-login@v2
- name: Build, tag, and push docker image to Amazon ECR
id: build-image
working-directory: ./backend/jobs/transaction-job
env:
REGISTRY: ${{ steps.ecr-login.outputs.registry }}
REPOSITORY: puconvocation/${{ env.DEPLOYMENT_NAME }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG