-
Notifications
You must be signed in to change notification settings - Fork 41
168 lines (151 loc) · 5.81 KB
/
deploy_images_a9.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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Deploy images AlmaLinux9
on:
workflow_dispatch:
inputs:
push_image:
description: Push to DockerHub
type: boolean
default: false
specific_job:
description: Specific job to run
type: choice
default: none
options:
- none
- py38
- py39
- py310
- py311
- py312
# - py313
- example
platforms:
description: Platforms to build for
type: choice
default: linux/amd64,linux/arm64
options:
- linux/amd64,linux/arm64
- linux/amd64
- linux/arm64
jobs:
a9-py38:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py38') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_alma9_py38
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:a9-py38-rc,riga/law:py38-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}
a9-py39:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py39') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_alma9_py39
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:a9-py39-rc,riga/law:py39-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}
a9-py310:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py310') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_alma9_py310
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:a9-py310-rc,riga/law:py310-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}
a9-py311:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py311') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_alma9_py311
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:a9-py311-rc,riga/law:a9-py3-rc,riga/law:a9-rc,riga/law:py311-rc,riga/law:py3-rc,riga/law:latest-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}
a9-py312:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py312') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_alma9_py312
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:a9-py312-rc,riga/law:py312-rc
push_image: ${{ github.event.inputs.push_image == 'true' }}
# NO GFAL SUPPORT YET
# a9-py313:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py313') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false
# - name: Build and deploy image 🐳
# uses: ./.github/actions/build-image
# with:
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
# docker_file: docker/Dockerfile_alma9_py313
# platforms: ${{ github.event.inputs.platforms }}
# tags: riga/law:a9-py313,riga/law:py313
# push_image: ${{ github.event.inputs.push_image == 'true' }}
example:
if: ${{ github.event.inputs.push_image == 'true' && (github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'example')) }}
needs: a9-py311
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_example
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:example-rc
push_image: true