-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/hyperjumptech/monika into c…
…hore/upgrade-oclif-core
- Loading branch information
Showing
4 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow will test building the Docker image for Monika. | ||
# For Intel based MacOS, Linux, and Windows, it will build the image for using linux/amd64 platfrom | ||
# For Apple Silicon, it will build the image for using linux/arm64 platfrom | ||
# There is a reason why we cannot build the image for MacOS and Windows using windows-latest or macos-latest. | ||
# Read more about it here: | ||
# https://github.com/docker/setup-buildx-action/issues/292 | ||
# https://github.com/moby/buildkit/issues/616 | ||
# https://github.com/docker/setup-qemu-action/discussions/137 | ||
|
||
name: Docker Build Test | ||
|
||
on: | ||
workflow_dispatch: null | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
issues: read | ||
pull-requests: read | ||
actions: write | ||
|
||
jobs: | ||
build: | ||
name: Build for ${{ matrix.os }} | ||
runs-on: ${{ matrix.runs_on }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: Linux, Windows and MacOS x64 | ||
platform: windows | ||
runs_on: ubuntu-latest | ||
flags: --platform=linux/amd64 | ||
- os: MacOS (Apple Silicon) | ||
platform: macos | ||
runs_on: ubuntu-latest | ||
flags: --platform=linux/arm64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Docker Setup QEMU | ||
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build the image | ||
run: | | ||
docker buildx build ${{ matrix.flags }} -t hyperjump/monika:${{ matrix.platform }} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters