-
Notifications
You must be signed in to change notification settings - Fork 6
146 lines (134 loc) · 5.11 KB
/
cd.yaml
File metadata and controls
146 lines (134 loc) · 5.11 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: CD
permissions:
contents: read
packages: write
on:
workflow_dispatch:
inputs:
version-major:
description: The base image major version
required: true
type: string
version-minor:
description: The base image minor version
required: true
type: string
tag-latest:
description: Set 'true' to tag the image with 'lastest'
required: true
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.version-major }}.${{ inputs.version-minor }}
cancel-in-progress: false
env:
IMAGE_HAPROXY_ACME: flobernd/haproxy-acme
IMAGE_HAPROXY_ACME_HTTP01: flobernd/haproxy-acme-http01
jobs:
meta:
name: Extract Metadata
runs-on: ubuntu-latest
outputs:
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
labels: |
org.opencontainers.image.version=${{ inputs.version-major }}.${{ inputs.version-minor }}
annotations: |
org.opencontainers.image.version=${{ inputs.version-major }}.${{ inputs.version-minor }}
main1:
name: CD
needs:
- meta
uses:
./.github/workflows/docker_release.yml
with:
registry: ghcr.io
image: flobernd/haproxy-acme
context: ./haproxy-acme/data
build-args: |
BASE_IMAGE=haproxy:${{ inputs.version-major }}.${{ inputs.version-minor }}-trixie
platforms: '["linux/386", "linux/amd64", "linux/arm/v5", "linux/arm/v7", "linux/arm64", "linux/ppc64le", "linux/s390x"]'
tags: |
ghcr.io/flobernd/haproxy-acme:${{ inputs.version-major }}.${{ inputs.version-minor }}
ghcr.io/flobernd/haproxy-acme:${{ inputs.version-major }}
${{ inputs.tag-latest && format('{0}:latest', 'ghcr.io/flobernd/haproxy-acme') || '' }}
labels: ${{ needs.meta.outputs.labels }}
annotations: ${{ needs.meta.outputs.annotations }}
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
main2:
name: CD
needs:
- meta
- main1
uses:
./.github/workflows/docker_release.yml
with:
registry: ghcr.io
image: flobernd/haproxy-acme-http01
context: ./haproxy-acme-http01/data
build-args: |
BASE_IMAGE=ghcr.io/flobernd/haproxy-acme:${{ inputs.version-major }}.${{ inputs.version-minor }}
platforms: '["linux/386", "linux/amd64", "linux/arm/v5", "linux/arm/v7", "linux/arm64", "linux/ppc64le", "linux/s390x"]'
tags: |
ghcr.io/flobernd/haproxy-acme-http01:${{ inputs.version-major }}.${{ inputs.version-minor }}
ghcr.io/flobernd/haproxy-acme-http01:${{ inputs.version-major }}
${{ inputs.tag-latest && format('{0}:latest', 'ghcr.io/flobernd/haproxy-acme-http01') || '' }}
labels: ${{ needs.meta.outputs.labels }}
annotations: ${{ needs.meta.outputs.annotations }}
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
main3:
name: CD
needs:
- meta
- main1
uses:
./.github/workflows/docker_release.yml
with:
registry: ghcr.io
image: flobernd/haproxy-acme-dns01
context: ./haproxy-acme-dns01/data
build-args: |
BASE_IMAGE=ghcr.io/flobernd/haproxy-acme:${{ inputs.version-major }}.${{ inputs.version-minor }}
platforms: '["linux/386", "linux/amd64", "linux/arm/v5", "linux/arm/v7", "linux/arm64", "linux/ppc64le", "linux/s390x"]'
tags: |
ghcr.io/flobernd/haproxy-acme-dns01:${{ inputs.version-major }}.${{ inputs.version-minor }}
ghcr.io/flobernd/haproxy-acme-dns01:${{ inputs.version-major }}
${{ inputs.tag-latest && format('{0}:latest', 'ghcr.io/flobernd/haproxy-acme-dns01') || '' }}
labels: ${{ needs.meta.outputs.labels }}
annotations: ${{ needs.meta.outputs.annotations }}
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
main4:
name: CD
needs:
- meta
- main1
uses:
./.github/workflows/docker_release.yml
with:
registry: ghcr.io
image: flobernd/haproxy-acme-tlsalpn01
context: ./haproxy-acme-tlsalpn01/data
build-args: |
BASE_IMAGE=ghcr.io/flobernd/haproxy-acme:${{ inputs.version-major }}.${{ inputs.version-minor }}
platforms: '["linux/386", "linux/amd64", "linux/arm/v5", "linux/arm/v7", "linux/arm64", "linux/ppc64le", "linux/s390x"]'
tags: |
ghcr.io/flobernd/haproxy-acme-tlsalpn01:${{ inputs.version-major }}.${{ inputs.version-minor }}
ghcr.io/flobernd/haproxy-acme-tlsalpn01:${{ inputs.version-major }}
${{ inputs.tag-latest && format('{0}:latest', 'ghcr.io/flobernd/haproxy-acme-tlsalpn01') || '' }}
labels: ${{ needs.meta.outputs.labels }}
annotations: ${{ needs.meta.outputs.annotations }}
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}