Skip to content

Commit

Permalink
Point Docker deployment to ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen committed Feb 20, 2024
1 parent 70b399c commit 7eae65d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
- name: Login to Docker registry
uses: docker/login-action@v1
with:
registry: registry.online.ntnu.no
registry: 891459268445.dkr.ecr.eu-north-1.amazonaws.com/gradestats-web-prd
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Image to Github Container Registry
- name: Build and push Image to ECR
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: registry.online.ntnu.no/gradestats-app:latest
tags: 891459268445.dkr.ecr.eu-north-1.amazonaws.com/gradestats-web-prd:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: NEXT_PUBLIC_BUILD_TIME_COURSE_LIMIT,NEXT_PUBLIC_GRADES_API_URL,NEXT_PUBLIC_CANONICAL_URL,NEXT_PUBLIC_SENTRY_DSN,NEXT_PUBLIC_GA_TRACKING_ID,NEXT_PUBLIC_FEIDE_CLIENT_ID,NEXT_PUBLIC_FEIDE_AUTH_ENDPOINT
Expand Down

0 comments on commit 7eae65d

Please sign in to comment.