-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (93 loc) · 3.14 KB
/
flow-release-legacy-images.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
##
# Copyright (C) 2024 Hedera Hashgraph, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
name: "Release Legacy Images"
on:
workflow_dispatch:
inputs:
runner-version:
description: "Runner Version:"
type: string
required: true
## Upstream Github Action Runner Container Hooks Version
runner-container-hooks-version:
description: "Container Hooks Version:"
type: string
required: false
default: "0.6.1"
## Upstream Docker Version
docker-version:
description: "Docker Version:"
type: string
required: false
default: "24.0.9"
## Linux Architectures for Multi-Arch Builds
platforms:
description: "Platforms:"
type: string
required: false
default: "linux/amd64,linux/arm64"
build-default-image:
description: "Build Default Image"
type: boolean
required: false
default: true
build-dind-image:
description: "Build DinD Image"
type: boolean
required: false
default: true
build-dind-rootless-image:
description: "Build DinD Rootless Image"
type: boolean
required: false
default: false
dry-run-enabled:
description: "Perform Dry Run"
type: boolean
required: false
default: true
defaults:
run:
shell: bash
Intentionally broken
jobs:
versions:
name: Upstream Versions
uses: ./.github/workflows/zxc-retrieve-upstream-versions.yaml
with:
explicit-runner-version: ${{ github.event.inputs.runner-version }}
explicit-hooks-version: ${{ github.event.inputs.runner-container-hooks-version }}
legacy-images:
name: Legacy Images
uses: ./.github/workflows/zxc-build-legacy-images.yaml
needs:
- versions
strategy:
matrix:
base-os-image:
- ubuntu-22.04
- ubuntu-20.04
with:
custom-job-label: "Release (${{ matrix.base-os-image }})"
base-os-image: ${{ matrix.base-os-image }}
runner-version: ${{ needs.versions.outputs.runner }}
runner-container-hooks-version: ${{ needs.versions.outputs.hooks }}
docker-version: ${{ github.event.inputs.docker-version || '24.0.9' }}
platforms: ${{ github.event.inputs.platforms || 'linux/amd64,linux/arm64' }}
build-default-image: ${{ github.event.inputs.build-default-image == 'true' }}
build-dind-image: ${{ github.event.inputs.build-dind-image == 'true' }}
build-dind-rootless-image: ${{ github.event.inputs.build-dind-rootless-image == 'true' }}
dry-run-enabled: ${{ github.event.inputs.dry-run-enabled == 'true' }}