-
Notifications
You must be signed in to change notification settings - Fork 32
56 lines (51 loc) · 1.4 KB
/
publish_docker_matrix.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
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
debian:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_debian.yml
with:
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}
ubuntu:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_ubuntu.yml
with:
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}
alpine:
needs: test_commit_hash
uses: ./.github/workflows/publish_docker_matrix_alpine.yml
with:
tcw_commit_hash: ${{ inputs.tcw_commit_hash }}