Build Docker images with GitHub Actions (#16)
* WIP GitHub Actions Workflow * Split into reusable workflow * Generate MXE and Win builds
This commit is contained in:
57
.github/workflows/release.yaml
vendored
Normal file
57
.github/workflows/release.yaml
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '**'
|
||||
branches:
|
||||
- master
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: static
|
||||
file: Dockerfile.static
|
||||
tag: static
|
||||
- name: dynamic
|
||||
file: Dockerfile
|
||||
tag: latest
|
||||
- name: MXE
|
||||
file: Dockerfile.mxe
|
||||
tag: mxe
|
||||
name: ${{ matrix.name }}
|
||||
uses: ./.github/workflows/build.yaml
|
||||
with:
|
||||
file: ${{ matrix.file }}
|
||||
tag: ${{ matrix.tag }}
|
||||
mxe_win:
|
||||
needs: [build]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: Win32 Static
|
||||
file: Dockerfile.win32s
|
||||
tag: win32s
|
||||
- name: Win32 Dynamic
|
||||
file: Dockerfile.win32d
|
||||
tag: win32d
|
||||
- name: Win64 Static
|
||||
file: Dockerfile.win64s
|
||||
tag: win64s
|
||||
- name: Win64 Dynamic
|
||||
file: Dockerfile.win64d
|
||||
tag: win64d
|
||||
name: MXE ${{ matrix.name }}
|
||||
uses: ./.github/workflows/build.yaml
|
||||
with:
|
||||
file: ${{ matrix.file }}
|
||||
tag: ${{ matrix.tag }}
|
||||
Reference in New Issue
Block a user