1- name : build mono
1+ name : build wine
22on :
33 workflow_dispatch :
4- schedule :
5- - cron : " 0 0 * * 1"
4+ workflow_run :
5+ workflows : [".github/workflows/base.yml"]
6+ types : [completed]
7+ branches :
8+ - master
69 push :
710 branches :
811 - master
912 paths :
10- - base/debian/**
11- - mono/**
12- - scripts/ampstart.sh
13- permissions :
13+ - wine/**
14+
15+ permissions :
1416 contents : read
1517 packages : write
1618
1719jobs :
1820 push :
19- if : ${{ github.repository_owner == 'CubeCoders' }}
20- name : " amp:${{ matrix.mono }}"
21+ if : ${{ github.repository_owner == 'CubeCoders' && ( (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'push' || github.event_name == 'workflow_dispatch' ) }}
22+ name : " amp:wine- ${{ matrix.wine }}"
2123 runs-on : ubuntu-latest
2224 strategy :
2325 fail-fast : false
2426 matrix :
25- mono :
26- - latest
27+ wine :
28+ - 9-stable
29+ - 10-stable
30+ - devel
31+ - stable
32+ - staging
33+
2734 steps :
2835 - uses : actions/checkout@v4
29- - uses : docker/setup-qemu-action@v3
36+ with :
37+ ref : ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
38+
39+ # - uses: docker/setup-qemu-action@v3
3040 - uses : docker/setup-buildx-action@v3
41+
3142 - uses : docker/login-action@v3
3243 with :
3344 registry : ghcr.io
3445 username : cubecoders
3546 password : ${{ secrets.GITHUB_TOKEN }}
47+
3648 - uses : docker/build-push-action@v6
3749 with :
3850 context : .
39- file : ./mono /${{ matrix.mono }}/Dockerfile
40- platforms : linux/amd64,linux/arm64/v8
51+ file : ./wine /${{ matrix.wine }}/Dockerfile
52+ platforms : linux/amd64
4153 push : true
42- tags : |
43- ghcr.io/cubecoders/amp:${{ matrix.mono }}
44- cache-from : type=gha
45- cache-to : type=gha,mode=max
54+ pull : true
55+ tags : ghcr.io/cubecoders/amp:wine- ${{ matrix.wine }}
56+ cache-from : type=gha,scope=${{ github.workflow }}-${{ matrix.wine }}
57+ cache-to : type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.wine }}
4658 provenance : mode=max
4759 sbom : true
4860
4961concurrency :
5062 group : ${{ github.workflow }}-${{ github.ref }}
51- cancel-in-progress : false
63+ cancel-in-progress : false
0 commit comments