Skip to content

Commit

Permalink
Merge pull request #85 from data-science-ucsb/aws-ecr-deploy
Browse files Browse the repository at this point in the history
build/push to ecr changes
  • Loading branch information
Ramon-W authored Nov 1, 2023
2 parents f0c865d + a64870e commit ace3f99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1

- name: Build and push to AWS ECR
env:
SHA: ${{ github.sha }}
run: |
docker build -t 380357184503.dkr.ecr.us-east-1.amazonaws.com/gauchocourses-cr:${{ github.sha }} .
docker push 380357184503.dkr.ecr.us-east-1.amazonaws.com/gauchocourses-cr:${{ github.sha }}
docker build -t gauchocourses-cr:${SHA} .
docker tag gauchocourses-cr:${SHA} 380357184503.dkr.ecr.us-east-1.amazonaws.com/gauchocourses-cr:${SHA}
docker push 380357184503.dkr.ecr.us-east-1.amazonaws.com/gauchocourses-cr:${SHA}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
Expand Down

0 comments on commit ace3f99

Please sign in to comment.