Skip to content

Commit ba319f8

Browse files
github: make indents conform to yamllint rules
Stop yamllint from emitting warnings due to the indent of parts of the container-image.yml file. Signed-off-by: John Mulligan <[email protected]>
1 parent 6740e2a commit ba319f8

File tree

1 file changed

+90
-90
lines changed

1 file changed

+90
-90
lines changed

.github/workflows/container-image.yml

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
checks:
1515
runs-on: ubuntu-latest
1616
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
2424

2525
check-commits:
2626
runs-on: ubuntu-latest
@@ -44,14 +44,14 @@ jobs:
4444
env:
4545
BUILDAH_FORMAT: oci
4646
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
5555

5656
build-ad-server:
5757
strategy:
@@ -64,14 +64,14 @@ jobs:
6464
env:
6565
BUILDAH_FORMAT: oci
6666
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
7575

7676
build-client:
7777
strategy:
@@ -82,16 +82,16 @@ jobs:
8282
BUILDAH_FORMAT: oci
8383
runs-on: ubuntu-latest
8484
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
9595

9696
build-toolbox:
9797
strategy:
@@ -103,15 +103,15 @@ jobs:
103103
env:
104104
BUILDAH_FORMAT: oci
105105
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
115115

116116
test-server:
117117
strategy:
@@ -121,13 +121,13 @@ jobs:
121121
needs: build-server
122122
runs-on: ubuntu-latest
123123
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
131131

132132
# Reminder: the nightly-server images consume nightly samba rpm builds
133133
# it is not *just* an image that gets built nightly
@@ -140,14 +140,14 @@ jobs:
140140
env:
141141
BUILDAH_FORMAT: oci
142142
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
151151

152152
build-nightly-ad-server:
153153
runs-on: ubuntu-latest
@@ -160,14 +160,14 @@ jobs:
160160
env:
161161
BUILDAH_FORMAT: oci
162162
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
171171

172172
test-nightly-server:
173173
strategy:
@@ -177,13 +177,13 @@ jobs:
177177
needs: build-nightly-server
178178
runs-on: ubuntu-latest
179179
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
187187

188188
test-ad-server-kubernetes:
189189
strategy:
@@ -200,24 +200,24 @@ jobs:
200200
env:
201201
IMG_TAG: ${{ matrix.os }}-latest
202202
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
221221

222222
test-nightly-ad-server-kubernetes:
223223
strategy:

0 commit comments

Comments
 (0)