Skip to content

Commit

Permalink
Try creating builder
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <byron@nats.io>
  • Loading branch information
bruth committed Feb 10, 2024
1 parent d8ec138 commit 2f366e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup builder
run: |
docker buildx create --name builder --bootstrap --use
- name: Alpine image
run: |
docker buildx build \
--platform linux/arm64v8,linux/arm32v6,linux/arm32v7,linux/amd64,linux/i386,linux/s390x \
--platform linux/arm64,linux/arm/v6,linux/arm/v7,linux/amd64,linux/386,linux/s390x \
--tag "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine3.19" \
--push \
./2.10.x/alpine3.19
Expand All @@ -45,7 +49,7 @@ jobs:
run: |
docker buildx build \
--build-arg "BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine3.19" \
--platform linux/arm64v8,linux/arm32v6,linux/arm32v7,linux/amd64,linux/i386,linux/s390x \
--platform linux/arm64,linux/arm/v6,linux/arm/v7,linux/amd64,linux/386,linux/s390x \
--tag "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-scratch" \
--push \
./2.10.x/scratch

0 comments on commit 2f366e3

Please sign in to comment.