-
Notifications
You must be signed in to change notification settings - Fork 188
46 lines (39 loc) · 1.22 KB
/
docker-image-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
tags: latest, ${{ github.event.workflow_run.head_branch }}
multiPlatform: true
- os: windows-2022
platforms: windows/amd64
file: windows.Dockerfile
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
platform: ${{ matrix.platforms }}
tags: ${{ matrix.tags }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}