From f0c9633f3b19d6c2cf89cddd42475508e55530f6 Mon Sep 17 00:00:00 2001 From: Akshith Ambekar Date: Mon, 8 Sep 2025 11:11:00 -0400 Subject: [PATCH 1/2] qa and prod github actions --- .github/workflows/prod-publish.yml | 31 ++++++++++++++++++++++++++++++ .github/workflows/qa-publish.yml | 31 ++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/prod-publish.yml create mode 100644 .github/workflows/qa-publish.yml diff --git a/.github/workflows/prod-publish.yml b/.github/workflows/prod-publish.yml new file mode 100644 index 00000000..bd8bb596 --- /dev/null +++ b/.github/workflows/prod-publish.yml @@ -0,0 +1,31 @@ +name: Prod Publish + +on: + push: + branches: + - 'main' + +jobs: + prod-publish: + name: Prod Publish + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v5.0.0 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Login to Amazon ECR + uses: aws-actions/amazon-ecr-login@v2 + with: + registry-type: public + + - name: Build and push Docker image + run: | + docker build -f tueri_api/Dockerfile -t public.ecr.aws/microhealthllc/tueri:prod . + docker push public.ecr.aws/microhealthllc/tueri:prod diff --git a/.github/workflows/qa-publish.yml b/.github/workflows/qa-publish.yml new file mode 100644 index 00000000..4ff7031b --- /dev/null +++ b/.github/workflows/qa-publish.yml @@ -0,0 +1,31 @@ +name: QA Publish + +on: + push: + branches: + - 'release' + +jobs: + qa-publish: + name: QA Publish + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v5.0.0 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Login to Amazon ECR + uses: aws-actions/amazon-ecr-login@v2 + with: + registry-type: public + + - name: Build and push Docker image + run: | + docker build -f tueri_api/Dockerfile -t public.ecr.aws/microhealthllc/tueri:qa . + docker push public.ecr.aws/microhealthllc/tueri:qa From 2d4e61766c1cc5ddebcd680806fce0eedf257bde Mon Sep 17 00:00:00 2001 From: Akshith Ambekar Date: Mon, 8 Sep 2025 11:11:31 -0400 Subject: [PATCH 2/2] qa and prod github actions --- .github/workflows/prod-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-publish.yml b/.github/workflows/prod-publish.yml index bd8bb596..37afbc92 100644 --- a/.github/workflows/prod-publish.yml +++ b/.github/workflows/prod-publish.yml @@ -27,5 +27,5 @@ jobs: - name: Build and push Docker image run: | - docker build -f tueri_api/Dockerfile -t public.ecr.aws/microhealthllc/tueri:prod . - docker push public.ecr.aws/microhealthllc/tueri:prod + docker build -f tueri_api/Dockerfile -t public.ecr.aws/microhealthllc/tueri:latest . + docker push public.ecr.aws/microhealthllc/tueri:latest