Skip to content

Commit

Permalink
feat(docker): pushing image to github registry
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Aug 18, 2023
1 parent b3a6231 commit ad3dca3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/aws-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Deploy Backend to Preview ECS
on:
push:
branches: [ "main" ]
paths:
- 'backend/core/**'
# paths:
# - 'backend/core/**'

env:
AWS_REGION: eu-west-3
Expand Down Expand Up @@ -33,6 +33,13 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -51,7 +58,7 @@ jobs:
with:
context: ./backend/core/
push: true
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest, ghcr.io/quivr/quivr:${{ env.IMAGE_TAG }}, ghcr.io/quivr/quivr:latest
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit ad3dca3

Please sign in to comment.