Skip to content

Commit

Permalink
add rough draft workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marycrawford committed Jun 11, 2024
1 parent 55d8945 commit e111d02
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ecr_deployment.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e111d02

Please sign in to comment.