Skip to content

Commit

Permalink
separate local native build and cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 11, 2024
1 parent c908f08 commit 8c8b397
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Image
- name: Build native image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
push: false
load: true
tags: ${{ env.IMAGE_NAME }}

- name: Test
run: chmod +x ./scripts/test.sh && ./scripts/test.sh ${{ env.IMAGE_NAME }}

- name: Build multi-arch image and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ env.IMAGE_NAME }}

0 comments on commit 8c8b397

Please sign in to comment.