From e111d02d6b10d46a643ae3fc7f012c8208ff4bb4 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Tue, 11 Jun 2024 14:51:54 -0700 Subject: [PATCH] add rough draft workflow --- .github/workflows/ecr_deployment.yaml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ecr_deployment.yaml diff --git a/.github/workflows/ecr_deployment.yaml b/.github/workflows/ecr_deployment.yaml new file mode 100644 index 00000000..2ec81a42 --- /dev/null +++ b/.github/workflows/ecr_deployment.yaml @@ -0,0 +1,36 @@ +name: Deploy to ECR + +on: + push: + branches: + #- main + - 1611-create-elastic-container-service + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + with: + region: us-east-1 + + # - name: Authenticate Docker Registry for ECR + # run: aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 339712971032.dkr.ecr.us-east-1.amazonaws.com + + - name: Build Docker fhir-converter image + run: docker build -t fhir-converter . + + - name: Tag Docker image + run: docker tag fhir-converter:latest 339712971032.dkr.ecr.us-east-1.amazonaws.com/fhir-converter:latest + + - name: Push Docker image + run: docker push 339712971032.dkr.ecr.us-east-1.amazonaws.com/fhir-converter:latest