Skip to content

Commit

Permalink
Apply buildx to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Jan 30, 2024
1 parent f628e6c commit c30e80f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/base-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Use docker buildx
run: docker buildx create --use

- name: Build & Push Image
env:
VERSION: ${{ inputs.version }}
run: docker build -t yorkieteam/codepair:$VERSION --push ./backend
run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push ./backend
2 changes: 0 additions & 2 deletions .github/workflows/docker-publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
paths:
- "backend/**"
jobs:
call-base-docker-publish:
uses: ./.github/workflows/base-docker-publish.yml
Expand Down

0 comments on commit c30e80f

Please sign in to comment.