Skip to content

fix(upload-notes): fixed rabbit connection #13

fix(upload-notes): fixed rabbit connection

fix(upload-notes): fixed rabbit connection #13

Workflow file for this run

name: Build and Push Upload Notes Service image to ECR
on:
push:
branches:
- main
- feat/build-push
paths:
- 'backend/complex/upload-notes/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- 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
run: |
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push Docker image to ECR
uses: docker/build-push-action@v2
with:
context: ./backend/complex/upload-notes/
file: ./backend/complex/upload-notes/Dockerfile
push: true
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ secrets.ECR_REPOSITORY }}:upload-notes
platforms: linux/arm64