-
Notifications
You must be signed in to change notification settings - Fork 36
71 lines (66 loc) · 2.16 KB
/
publish_docker_matrix_all.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
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
name: Docker Image Publish Matrix (All)
on:
workflow_dispatch:
workflow_call:
inputs:
tcw_commit_hash:
type: string
push:
branches:
- master
- develop
tags:
- tc_nightly*
- tc_v*.*.*
pull_request:
branches:
- master
- develop
jobs:
test_commit_hash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ inputs.tcw_commit_hash }}
- name: Verify commit hash
if: ${{ inputs.tcw_commit_hash != '' }}
run: |
COMMIT_HASH=$(git rev-parse HEAD)
if [ "$COMMIT_HASH" != "${{ inputs.tcw_commit_hash }}" ]; then
echo "Error: Checked out commit hash ($COMMIT_HASH) does not match the expected hash (${{ inputs.tcw_commit_hash }})."
exit 1
else
echo "Commit hash verified: $COMMIT_HASH"
fi
ubuntu:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_base.yml
with:
system: "ubuntu"
dockerfile: "DockerfileUbuntu"
platforms: '["linux/amd64", "linux/arm/v7", "linux/arm64/v8", "linux/ppc64le", "linux/s390x"]'
primary_image: true
error_platforms: '["linux/s390x", "linux/ppc64le", "linux/arm/v7"]'
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}
debian:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_base.yml
with:
system: "debian"
dockerfile: "DockerfileDebian"
platforms: '["linux/amd64", "linux/arm/v7", "linux/arm64/v8", "linux/i386", "linux/ppc64le", "linux/s390x"]'
primary_image: false
error_platforms: '["linux/s390x", "linux/ppc64le", "linux/arm/v7"]'
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}
alpine:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_base.yml
with:
system: "alpine"
dockerfile: "DockerfileAlpine"
platforms: '["linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/ppc64le", "linux/s390x", "linux/386"]'
primary_image: false
error_platforms: "[]"
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}