forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (65 loc) · 2.13 KB
/
Copy pathpull-docker-dryrun.yml
File metadata and controls
76 lines (65 loc) · 2.13 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: docker-dryrun
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
CACHE_ROOTFUL: "type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful"
CACHE_ROOTLESS: "type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless"
jobs:
files-changed:
uses: ./.github/workflows/files-changed.yml
permissions:
contents: read
# dryrun build is slow, so run them parallelly per-platform
container-amd64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/amd64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-amd64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/amd64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}
container-arm64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/arm64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-arm64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/arm64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}
container-riscv64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/riscv64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-riscv64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/riscv64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}