@@ -14,13 +14,13 @@ jobs:
14
14
checks :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v3
18
- # We need a newer version of shellcheck to avoid problems with the
19
- # relative imports. Our scripts work on v0.7.2 and up but not the
20
- # v0.7.0 preinstalled in the ubutnu image. We can force a local
21
- # install by expliclity setting SHELLCHECK to `$ALT_BIN/shellcheck`
22
- - name : Run static check tools
23
- run : make check SHELLCHECK=$PWD/.bin/shellcheck
17
+ - uses : actions/checkout@v3
18
+ # We need a newer version of shellcheck to avoid problems with the
19
+ # relative imports. Our scripts work on v0.7.2 and up but not the
20
+ # v0.7.0 preinstalled in the ubutnu image. We can force a local
21
+ # install by expliclity setting SHELLCHECK to `$ALT_BIN/shellcheck`
22
+ - name : Run static check tools
23
+ run : make check SHELLCHECK=$PWD/.bin/shellcheck
24
24
25
25
check-commits :
26
26
runs-on : ubuntu-latest
@@ -44,14 +44,14 @@ jobs:
44
44
env :
45
45
BUILDAH_FORMAT : oci
46
46
steps :
47
- - uses : actions/checkout@v3
48
- - name : Build the server image
49
- run : make OS_NAME=${{ matrix.os}} BUILD_ARCH=${{ matrix.arch}} build-server
50
- - name : Upload server image
51
- uses : ishworkh/docker-image-artifact-upload@v1
52
- with :
53
- image : " samba-server:${{ matrix.os }}-latest"
54
- retention_days : 1
47
+ - uses : actions/checkout@v3
48
+ - name : Build the server image
49
+ run : make OS_NAME=${{ matrix.os}} BUILD_ARCH=${{ matrix.arch}} build-server
50
+ - name : Upload server image
51
+ uses : ishworkh/docker-image-artifact-upload@v1
52
+ with :
53
+ image : " samba-server:${{ matrix.os }}-latest"
54
+ retention_days : 1
55
55
56
56
build-ad-server :
57
57
strategy :
@@ -64,14 +64,14 @@ jobs:
64
64
env :
65
65
BUILDAH_FORMAT : oci
66
66
steps :
67
- - uses : actions/checkout@v3
68
- - name : Build the ad server image
69
- run : make OS_NAME=${{matrix.os}} BUILD_ARCH=${{matrix.arch}} build-ad-server
70
- - name : Upload ad server image
71
- uses : ishworkh/docker-image-artifact-upload@v1
72
- with :
73
- image : " samba-ad-server:${{ matrix.os}}-latest"
74
- retention_days : 1
67
+ - uses : actions/checkout@v3
68
+ - name : Build the ad server image
69
+ run : make OS_NAME=${{matrix.os}} BUILD_ARCH=${{matrix.arch}} build-ad-server
70
+ - name : Upload ad server image
71
+ uses : ishworkh/docker-image-artifact-upload@v1
72
+ with :
73
+ image : " samba-ad-server:${{ matrix.os}}-latest"
74
+ retention_days : 1
75
75
76
76
build-client :
77
77
strategy :
@@ -82,16 +82,16 @@ jobs:
82
82
BUILDAH_FORMAT : oci
83
83
runs-on : ubuntu-latest
84
84
steps :
85
- - uses : actions/checkout@v3
86
- - name : build the client image
87
- run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-client
88
- # Here we upload samba-client image to artifacts locally for consumption
89
- # during the samba-toolbox build process.
90
- - name : Upload the client image
91
- uses : ishworkh/docker-image-artifact-upload@v1
92
- with :
93
- image : " quay.io/samba.org/samba-client:${{ matrix.os }}-latest"
94
- retention_days : 1
85
+ - uses : actions/checkout@v3
86
+ - name : build the client image
87
+ run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-client
88
+ # Here we upload samba-client image to artifacts locally for consumption
89
+ # during the samba-toolbox build process.
90
+ - name : Upload the client image
91
+ uses : ishworkh/docker-image-artifact-upload@v1
92
+ with :
93
+ image : " quay.io/samba.org/samba-client:${{ matrix.os }}-latest"
94
+ retention_days : 1
95
95
96
96
build-toolbox :
97
97
strategy :
@@ -103,15 +103,15 @@ jobs:
103
103
env :
104
104
BUILDAH_FORMAT : oci
105
105
steps :
106
- - uses : actions/checkout@v3
107
- # Download locally stored samba-client image to be used as base for building
108
- # samba-toolbox.
109
- - name : Download client image
110
- uses : ishworkh/docker-image-artifact-download@v1
111
- with :
112
- image : " quay.io/samba.org/samba-client:${{ matrix.os }}-latest"
113
- - name : Build the toolbox image
114
- run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-toolbox
106
+ - uses : actions/checkout@v3
107
+ # Download locally stored samba-client image to be used as base for building
108
+ # samba-toolbox.
109
+ - name : Download client image
110
+ uses : ishworkh/docker-image-artifact-download@v1
111
+ with :
112
+ image : " quay.io/samba.org/samba-client:${{ matrix.os }}-latest"
113
+ - name : Build the toolbox image
114
+ run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-toolbox
115
115
116
116
test-server :
117
117
strategy :
@@ -121,13 +121,13 @@ jobs:
121
121
needs : build-server
122
122
runs-on : ubuntu-latest
123
123
steps :
124
- - uses : actions/checkout@v3
125
- - name : Download server image
126
- uses : ishworkh/docker-image-artifact-download@v1
127
- with :
128
- image : " samba-server:${{ matrix.os }}-latest"
129
- - name : Test the server image
130
- run : LOCAL_TAG="samba-server:${{ matrix.os}}-latest" tests/test-samba-container.sh
124
+ - uses : actions/checkout@v3
125
+ - name : Download server image
126
+ uses : ishworkh/docker-image-artifact-download@v1
127
+ with :
128
+ image : " samba-server:${{ matrix.os }}-latest"
129
+ - name : Test the server image
130
+ run : LOCAL_TAG="samba-server:${{ matrix.os}}-latest" tests/test-samba-container.sh
131
131
132
132
# Reminder: the nightly-server images consume nightly samba rpm builds
133
133
# it is not *just* an image that gets built nightly
@@ -140,14 +140,14 @@ jobs:
140
140
env :
141
141
BUILDAH_FORMAT : oci
142
142
steps :
143
- - uses : actions/checkout@v3
144
- - name : Build the nightly server image
145
- run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-nightly-server
146
- - name : Upload nightly server image
147
- uses : ishworkh/docker-image-artifact-upload@v1
148
- with :
149
- image : " samba-server:${{ matrix.os }}-nightly"
150
- retention_days : 1
143
+ - uses : actions/checkout@v3
144
+ - name : Build the nightly server image
145
+ run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-nightly-server
146
+ - name : Upload nightly server image
147
+ uses : ishworkh/docker-image-artifact-upload@v1
148
+ with :
149
+ image : " samba-server:${{ matrix.os }}-nightly"
150
+ retention_days : 1
151
151
152
152
build-nightly-ad-server :
153
153
runs-on : ubuntu-latest
@@ -160,14 +160,14 @@ jobs:
160
160
env :
161
161
BUILDAH_FORMAT : oci
162
162
steps :
163
- - uses : actions/checkout@v3
164
- - name : Build the nightly ad server image
165
- run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-nightly-ad-server
166
- - name : Upload nightly AD server image
167
- uses : ishworkh/docker-image-artifact-upload@v1
168
- with :
169
- image : " samba-ad-server:${{ matrix.os }}-nightly"
170
- retention_days : 1
163
+ - uses : actions/checkout@v3
164
+ - name : Build the nightly ad server image
165
+ run : make OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-nightly-ad-server
166
+ - name : Upload nightly AD server image
167
+ uses : ishworkh/docker-image-artifact-upload@v1
168
+ with :
169
+ image : " samba-ad-server:${{ matrix.os }}-nightly"
170
+ retention_days : 1
171
171
172
172
test-nightly-server :
173
173
strategy :
@@ -177,13 +177,13 @@ jobs:
177
177
needs : build-nightly-server
178
178
runs-on : ubuntu-latest
179
179
steps :
180
- - uses : actions/checkout@v3
181
- - name : Download nightly server image
182
- uses : ishworkh/docker-image-artifact-download@v1
183
- with :
184
- image : " samba-server:${{ matrix.os }}-nightly"
185
- - name : Test the nightly server image
186
- run : LOCAL_TAG=samba-server:${{ matrix.os }}-nightly tests/test-samba-container.sh
180
+ - uses : actions/checkout@v3
181
+ - name : Download nightly server image
182
+ uses : ishworkh/docker-image-artifact-download@v1
183
+ with :
184
+ image : " samba-server:${{ matrix.os }}-nightly"
185
+ - name : Test the nightly server image
186
+ run : LOCAL_TAG=samba-server:${{ matrix.os }}-nightly tests/test-samba-container.sh
187
187
188
188
test-ad-server-kubernetes :
189
189
strategy :
@@ -200,24 +200,24 @@ jobs:
200
200
env :
201
201
IMG_TAG : ${{ matrix.os }}-latest
202
202
steps :
203
- - uses : actions/checkout@v3
204
- - uses : nolar/setup-k3d-k3s@v1
205
- - name : get nodes
206
- run : kubectl get nodes
207
- - name : Download ad server image
208
- uses : ishworkh/docker-image-artifact-download@v1
209
- with :
210
- image : " samba-ad-server:${{ matrix.os }}-latest"
211
- - name : import ad server image
212
- run : k3d image import samba-ad-server:${{ matrix.os }}-latest
213
- - name : Download file server image
214
- uses : ishworkh/docker-image-artifact-download@v1
215
- with :
216
- image : " samba-server:${{ matrix.os }}-latest"
217
- - name : import file server image
218
- run : k3d image import samba-server:${{ matrix.os }}-latest
219
- - name : run the ad-dc deployment test
220
- run : ./tests/test-samba-ad-server-kubernetes.sh
203
+ - uses : actions/checkout@v3
204
+ - uses : nolar/setup-k3d-k3s@v1
205
+ - name : get nodes
206
+ run : kubectl get nodes
207
+ - name : Download ad server image
208
+ uses : ishworkh/docker-image-artifact-download@v1
209
+ with :
210
+ image : " samba-ad-server:${{ matrix.os }}-latest"
211
+ - name : import ad server image
212
+ run : k3d image import samba-ad-server:${{ matrix.os }}-latest
213
+ - name : Download file server image
214
+ uses : ishworkh/docker-image-artifact-download@v1
215
+ with :
216
+ image : " samba-server:${{ matrix.os }}-latest"
217
+ - name : import file server image
218
+ run : k3d image import samba-server:${{ matrix.os }}-latest
219
+ - name : run the ad-dc deployment test
220
+ run : ./tests/test-samba-ad-server-kubernetes.sh
221
221
222
222
test-nightly-ad-server-kubernetes :
223
223
strategy :
0 commit comments