-
Notifications
You must be signed in to change notification settings - Fork 18
241 lines (240 loc) · 10.3 KB
/
build.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
name: Docker Build
on: [push]
jobs:
docker-build-go-build:
name: docker build go-build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile go-build/image.iid -f go-build/Dockerfile go-build/
- name: tag
run: |
docker tag $(< go-build/image.iid) ghcr.io/qlik-oss/go-build
docker tag $(< go-build/image.iid) ghcr.io/qlik-oss/go-build:$(date +'%Y-%m-%d')
docker tag $(< go-build/image.iid) qlik/go-build
docker tag $(< go-build/image.iid) qlik/go-build:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/go-build
docker push ghcr.io/qlik-oss/go-build:$(date +'%Y-%m-%d')
docker push qlik/go-build
docker push qlik/go-build:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-metrics-build:
name: docker build metrics-build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile metrics-build/image.iid -f metrics-build/Dockerfile metrics-build/
- name: tag
run: |
docker tag $(< metrics-build/image.iid) ghcr.io/qlik-oss/metrics-build
docker tag $(< metrics-build/image.iid) ghcr.io/qlik-oss/metrics-build:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/metrics-build
docker push ghcr.io/qlik-oss/metrics-build:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-go-build-1-21:
name: docker build go-build-1.21
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile go-build-1.21/image.iid -f go-build-1.21/Dockerfile go-build-1.21/
- name: tag
run: |
docker tag $(< go-build-1.21/image.iid) ghcr.io/qlik-oss/go-build:1.21
docker tag $(< go-build-1.21/image.iid) ghcr.io/qlik-oss/go-build:1.21-$(date +'%Y-%m-%d')
docker tag $(< go-build-1.21/image.iid) qlik/go-build:1.21
docker tag $(< go-build-1.21/image.iid) qlik/go-build:1.21-$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/go-build:1.21
docker push ghcr.io/qlik-oss/go-build:1.21-$(date +'%Y-%m-%d')
docker push qlik/go-build:1.21
docker push qlik/go-build:1.21-$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-node-build:
name: docker build node-build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile node-build/image.iid -f node-build/Dockerfile node-build/
- name: tag
run: |
docker tag $(< node-build/image.iid) ghcr.io/qlik-oss/node-build
docker tag $(< node-build/image.iid) ghcr.io/qlik-oss/node-build:$(date +'%Y-%m-%d')
docker tag $(< node-build/image.iid) qlik/node-build
docker tag $(< node-build/image.iid) qlik/node-build:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/node-build
docker push ghcr.io/qlik-oss/node-build:$(date +'%Y-%m-%d')
docker push qlik/node-build
docker push qlik/node-build:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-py-build:
name: docker build py-build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile py-build/image.iid -f py-build/Dockerfile py-build/
- name: tag
run: |
docker tag $(< py-build/image.iid) ghcr.io/qlik-oss/py-build
docker tag $(< py-build/image.iid) ghcr.io/qlik-oss/py-build:$(date +'%Y-%m-%d')
docker tag $(< py-build/image.iid) qlik/py-build
docker tag $(< py-build/image.iid) qlik/py-build:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/py-build
docker push ghcr.io/qlik-oss/py-build:$(date +'%Y-%m-%d')
docker push qlik/py-build
docker push qlik/py-build:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-socat:
name: docker build socat
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile socat/image.iid -f socat/Dockerfile socat/
- name: tag
run: |
docker tag $(< socat/image.iid) ghcr.io/qlik-oss/socat
docker tag $(< socat/image.iid) ghcr.io/qlik-oss/socat:$(date +'%Y-%m-%d')
docker tag $(< socat/image.iid) qlik/socat
docker tag $(< socat/image.iid) qlik/socat:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/socat
docker push ghcr.io/qlik-oss/socat:$(date +'%Y-%m-%d')
docker push qlik/socat
docker push qlik/socat:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
docker-build-tiny-build:
name: docker build tiny-build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
- name: docker version
run: docker version
- uses: actions/checkout@master
- name: build
run: docker build --progress plain --iidfile tiny-build/image.iid -f tiny-build/Dockerfile tiny-build/
- name: tag
run: |
docker tag $(< tiny-build/image.iid) ghcr.io/qlik-oss/tiny-build
docker tag $(< tiny-build/image.iid) ghcr.io/qlik-oss/tiny-build:$(date +'%Y-%m-%d')
docker tag $(< tiny-build/image.iid) qlik/tiny-build
docker tag $(< tiny-build/image.iid) qlik/tiny-build:$(date +'%Y-%m-%d')
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: login to DockerHub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'
- name: docker push
run: |
docker push ghcr.io/qlik-oss/tiny-build
docker push ghcr.io/qlik-oss/tiny-build:$(date +'%Y-%m-%d')
docker push qlik/tiny-build
docker push qlik/tiny-build:$(date +'%Y-%m-%d')
if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles'