Skip to content

docs: Update README.md to reflect the latest changes made in tech stack. #2

docs: Update README.md to reflect the latest changes made in tech stack.

docs: Update README.md to reflect the latest changes made in tech stack. #2

Workflow file for this run

name: Build and Deploy puconvocation-com to AWS ECS
on:
push:
branches:
- lambda-containers
env:
DEPLOYMENT_ARN: ${{ secrets.DEPLOYMENT_ARN }}
REGION: ${{ secrets.REGION }}
SERVICE: email-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/email-job
env:
REGISTRY: ${{ steps.ecr-login.outputs.registry }}
REPOSITORY: puconvocation/${{ env.SERVICE }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
echo "image=$REGISTRY/$REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT