Build / test-and-build (scribblers-linux-x64, ubuntu-latest) (push) Has been cancelled
Build / test-and-build (scribblers-macos-x64, macos-latest) (push) Has been cancelled
Build / test-and-build (scribblers-x64.exe, windows-latest) (push) Has been cancelled
Hello World / hello (push) Has been cancelled
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: docker image update
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [Build]
|
|
branches: [v**]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
max-parallel: 3
|
|
matrix:
|
|
os: [ubuntu-latest, windows-2022]
|
|
include:
|
|
- os: ubuntu-latest
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
file: linux.Dockerfile
|
|
buildArgs: VERSION=${{ github.event.workflow_run.head_branch }}
|
|
tags: latest, ${{ github.event.workflow_run.head_branch }}
|
|
multiPlatform: true
|
|
|
|
- os: windows-2022
|
|
platforms: windows/amd64
|
|
file: windows.Dockerfile
|
|
buildArgs: VERSION=${{ github.event.workflow_run.head_branch }}
|
|
tags: windows-latest, windows-${{ github.event.workflow_run.head_branch }}
|
|
multiPlatform: false
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and push
|
|
id: docker_build
|
|
uses: mr-smithers-excellent/docker-build-push@v6
|
|
with:
|
|
multiPlatform: ${{ matrix.multiPlatform }}
|
|
registry: docker.io
|
|
|
|
dockerfile: ${{ matrix.file }}
|
|
image: biosmarcel/scribble.rs
|
|
buildArgs: ${{ matrix.buildArgs }}
|
|
platform: ${{ matrix.platforms }}
|
|
tags: ${{ matrix.tags }}
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|