Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/prod-publish.yml
Original file line number Diff line number Diff line change
@@ -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:latest .
docker push public.ecr.aws/microhealthllc/tueri:latest
31 changes: 31 additions & 0 deletions .github/workflows/qa-publish.yml
Original file line number Diff line number Diff line change
@@ -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