Skip to content

Commit

Permalink
add setup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sm47916 committed Dec 6, 2023
1 parent cd47438 commit 691a3a8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ jobs:
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4


- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -29,7 +35,7 @@ jobs:
uses: aws-actions/amazon-ecr-login@v2

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -42,7 +48,13 @@ jobs:
if: github.ref != 'refs/heads/master'
steps:
- uses: actions/checkout@v4


- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -55,7 +67,7 @@ jobs:
uses: aws-actions/amazon-ecr-login@v2

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 691a3a8

Please sign in to comment.