Skip to content

Commit

Permalink
Setup docker buildx in create release workflow
Browse files Browse the repository at this point in the history
Following the docker guide on buildling images for multiple architectures,
we need to setup buildx first. The blog article mentions a custom github action
that is no longer maintaned. However, it references official docker github
actions that are we can use to setup buildx.

References
- Docker guide: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
- GH Action Custom Setup Buildx: https://github.com/crazy-max/ghaction-docker-buildx
- GH Action Qemu: https://github.com/docker/setup-qemu-action
- GH Action Buildx: https://github.com/docker/setup-buildx-action
  • Loading branch information
cheyer committed Jul 12, 2023
1 parent 35a41ab commit ddfcaa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/create-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
with:
ref: "dev"

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

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

- name: Build and Publish Docker Image @:next
run: |
# copose image ID and change all uppercase to lowercase
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
repo: context.repo.repo,
title: 'next'
});
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

- name: Build and Publish Docker Image @:latest and @:v_._._
run: |
Expand Down

0 comments on commit ddfcaa8

Please sign in to comment.