Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for Docker build #1307

Merged
merged 14 commits into from
Jul 24, 2024
48 changes: 48 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

dennypradipta marked this conversation as resolved.
Show resolved Hide resolved
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
platform: linux
runs_on: ubuntu-latest
flags: --platform=linux/amd64
- os: Windows
platform: windows
runs_on: ubuntu-latest
flags: --platform=linux/amd64
- os: MacOS (Apple Silicon)
dennypradipta marked this conversation as resolved.
Show resolved Hide resolved
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 }} .
Loading