Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Build api dockerfile also through docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrie committed Dec 5, 2023
1 parent 69c77bb commit 21e5605
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Setup buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build app image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./app.Dockerfile
Expand All @@ -89,11 +89,16 @@ jobs:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/n0p8j4k5/
docker push public.ecr.aws/n0p8j4k5/atlas/app:${{ github.sha }}
- name: Build API image
run: >
docker build .
--file ./api.Dockerfile
--tag public.ecr.aws/n0p8j4k5/atlas/api:${{ github.sha }}
- name: Build api image
uses: docker/build-push-action@v5
with:
context: .
file: ./api.Dockerfile
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: public.ecr.aws/n0p8j4k5/atlas/api:${{ github.sha }}

- name: Push API image
run: |
Expand Down

0 comments on commit 21e5605

Please sign in to comment.