Skip to content

Commit 40a1191

Browse files
authored
Merge pull request #623 from myoung34/fix_goss
bugfix: fix goss
2 parents feee6e3 + 2d9ba61 commit 40a1191

3 files changed

Lines changed: 172 additions & 34 deletions

File tree

.github/workflows/base.yml

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,31 @@ jobs:
3535
run: cp Dockerfile.base Dockerfile.base.ubuntu-${{ matrix.release }}; sed -i.bak 's/FROM.*/FROM ubuntu:${{ matrix.release }}/' Dockerfile.base.ubuntu-${{ matrix.release }}
3636
- name: Install Goss and dgoss
3737
run: |
38-
curl -fsSL https://goss.rocks/install | sh
39-
export PATH=$PATH:/usr/local/bin
38+
set -euo pipefail
39+
40+
VERSION="v0.4.9"
41+
BIN_DIR="$HOME/.local/bin"
42+
43+
mkdir -p "$BIN_DIR"
44+
echo "$BIN_DIR" >> "$GITHUB_PATH"
45+
46+
ARCH="${{ matrix.platform }}"
47+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
48+
echo "Unsupported platform: $ARCH"
49+
exit 1
50+
fi
51+
52+
curl -fsSL \
53+
-o "$BIN_DIR/goss" \
54+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
55+
56+
curl -fsSL \
57+
-o "$BIN_DIR/dgoss" \
58+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
59+
60+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
61+
62+
"$BIN_DIR/goss" --version
4063
- name: Get current Git SHA
4164
id: vars
4265
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -72,7 +95,7 @@ jobs:
7295
echo "os: ubuntu" >goss_vars_${GH_RUNNER_IMAGE}.yaml
7396
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
7497
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
75-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
98+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
7699
if [ $? -ne 0 ]; then
77100
exit 1
78101
fi
@@ -99,8 +122,31 @@ jobs:
99122
run: cp Dockerfile.base Dockerfile.base.debian-${{ matrix.release }}; sed -i.bak 's/FROM.*/FROM debian:${{ matrix.release }}/' Dockerfile.base.debian-${{ matrix.release }}
100123
- name: Install Goss and dgoss
101124
run: |
102-
curl -fsSL https://goss.rocks/install | sh
103-
export PATH=$PATH:/usr/local/bin
125+
set -euo pipefail
126+
127+
VERSION="v0.4.9"
128+
BIN_DIR="$HOME/.local/bin"
129+
130+
mkdir -p "$BIN_DIR"
131+
echo "$BIN_DIR" >> "$GITHUB_PATH"
132+
133+
ARCH="${{ matrix.platform }}"
134+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
135+
echo "Unsupported platform: $ARCH"
136+
exit 1
137+
fi
138+
139+
curl -fsSL \
140+
-o "$BIN_DIR/goss" \
141+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
142+
143+
curl -fsSL \
144+
-o "$BIN_DIR/dgoss" \
145+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
146+
147+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
148+
149+
"$BIN_DIR/goss" --version
104150
- name: Get current Git SHA
105151
id: vars
106152
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -136,7 +182,7 @@ jobs:
136182
echo "os: debian" >goss_vars_${GH_RUNNER_IMAGE}.yaml
137183
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
138184
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
139-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
185+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
140186
if [ $? -ne 0 ]; then
141187
exit 1
142188
fi

.github/workflows/deploy.yml

Lines changed: 58 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,31 @@ jobs:
3838
run: cp Dockerfile Dockerfile.ubuntu-${{ matrix.release }}; sed -i.bak "s/FROM.*/FROM ${ORG}\/github-runner-base:ubuntu-${{ matrix.release }}/" Dockerfile.ubuntu-${{ matrix.release }}
3939
- name: Install Goss and dgoss
4040
run: |
41-
curl -fsSL https://goss.rocks/install | sh
42-
export PATH=$PATH:/usr/local/bin
41+
set -euo pipefail
42+
43+
VERSION="v0.4.9"
44+
BIN_DIR="$HOME/.local/bin"
45+
46+
mkdir -p "$BIN_DIR"
47+
echo "$BIN_DIR" >> "$GITHUB_PATH"
48+
49+
ARCH="${{ matrix.platform }}"
50+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
51+
echo "Unsupported platform: $ARCH"
52+
exit 1
53+
fi
54+
55+
curl -fsSL \
56+
-o "$BIN_DIR/goss" \
57+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
58+
59+
curl -fsSL \
60+
-o "$BIN_DIR/dgoss" \
61+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
62+
63+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
64+
65+
"$BIN_DIR/goss" --version
4366
- name: Get current Git SHA
4467
id: vars
4568
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -77,7 +100,7 @@ jobs:
77100
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
78101
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
79102
# test the edge case from deregistration on reusable runners
80-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
103+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
81104
-e DEBUG_ONLY=true \
82105
-e ACCESS_TOKEN=notreal \
83106
-e LABELS=linux,x64 \
@@ -92,17 +115,17 @@ jobs:
92115
exit 1
93116
fi
94117
# test the base
95-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
118+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
96119
if [ $? -ne 0 ]; then
97120
exit 1
98121
fi
99122
# test the final image but with all defaults
100-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
123+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
101124
if [ $? -ne 0 ]; then
102125
exit 1
103126
fi
104127
# test the final image but with non-default values
105-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
128+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
106129
-e DEBUG_ONLY=true \
107130
-e RUNNER_NAME=huzzah \
108131
-e REPO_URL=https://github.com/myoung34/docker-github-actions-runner \
@@ -150,8 +173,31 @@ jobs:
150173
run: cp Dockerfile Dockerfile.debian-${{ matrix.release }}; sed -i.bak "s/FROM.*/FROM ${ORG}\/github-runner-base:debian-${{ matrix.release }}/" Dockerfile.debian-${{ matrix.release }}
151174
- name: Install Goss and dgoss
152175
run: |
153-
curl -fsSL https://goss.rocks/install | sh
154-
export PATH=$PATH:/usr/local/bin
176+
set -euo pipefail
177+
178+
VERSION="v0.4.9"
179+
BIN_DIR="$HOME/.local/bin"
180+
181+
mkdir -p "$BIN_DIR"
182+
echo "$BIN_DIR" >> "$GITHUB_PATH"
183+
184+
ARCH="${{ matrix.platform }}"
185+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
186+
echo "Unsupported platform: $ARCH"
187+
exit 1
188+
fi
189+
190+
curl -fsSL \
191+
-o "$BIN_DIR/goss" \
192+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
193+
194+
curl -fsSL \
195+
-o "$BIN_DIR/dgoss" \
196+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
197+
198+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
199+
200+
"$BIN_DIR/goss" --version
155201
- name: Get current Git SHA
156202
id: vars
157203
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -189,7 +235,7 @@ jobs:
189235
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
190236
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
191237
# test the edge case from deregistration on reusable runners
192-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
238+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
193239
-e DEBUG_ONLY=true \
194240
-e ACCESS_TOKEN=notreal \
195241
-e LABELS=linux,x64 \
@@ -204,11 +250,11 @@ jobs:
204250
exit 1
205251
fi
206252
# test the base
207-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
253+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
208254
# test the final image but with all defaults
209-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
255+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
210256
# test the final image but with non-default values
211-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
257+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
212258
-e DEBUG_ONLY=true \
213259
-e RUNNER_NAME=huzzah \
214260
-e REPO_URL=https://github.com/myoung34/docker-github-actions-runner \

.github/workflows/test.yml

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,31 @@ jobs:
3434
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
3535
- name: Install Goss and dgoss
3636
run: |
37-
curl -fsSL https://goss.rocks/install | sh
38-
export PATH=$PATH:/usr/local/bin
37+
set -euo pipefail
38+
39+
VERSION="v0.4.9"
40+
BIN_DIR="$HOME/.local/bin"
41+
42+
mkdir -p "$BIN_DIR"
43+
echo "$BIN_DIR" >> "$GITHUB_PATH"
44+
45+
ARCH="${{ matrix.platform }}"
46+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
47+
echo "Unsupported platform: $ARCH"
48+
exit 1
49+
fi
50+
51+
curl -fsSL \
52+
-o "$BIN_DIR/goss" \
53+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
54+
55+
curl -fsSL \
56+
-o "$BIN_DIR/dgoss" \
57+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
58+
59+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
60+
61+
"$BIN_DIR/goss" --version
3962
- name: Get current Git SHA
4063
id: vars
4164
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -78,7 +101,7 @@ jobs:
78101
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
79102
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
80103
# test the edge case from deregistration on reusable runners
81-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
104+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
82105
-e DEBUG_ONLY=true \
83106
-e ACCESS_TOKEN=notreal \
84107
-e LABELS=linux,x64 \
@@ -93,17 +116,17 @@ jobs:
93116
exit 1
94117
fi
95118
# test the base
96-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
119+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
97120
if [ $? -ne 0 ]; then
98121
exit 1
99122
fi
100123
# test the final image but with all defaults
101-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
124+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
102125
if [ $? -ne 0 ]; then
103126
exit 1
104127
fi
105128
# test the final image but with non-default values
106-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
129+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
107130
-e DEBUG_ONLY=true \
108131
-e RUNNER_NAME=huzzah \
109132
-e REPO_URL=https://github.com/myoung34/docker-github-actions-runner \
@@ -129,7 +152,7 @@ jobs:
129152
exit 1
130153
fi
131154
# test the EXIT trap on process crash
132-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_trap_exit.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
155+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_trap_exit.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
133156
-e DEBUG_ONLY=false \
134157
-e REPO_URL=https://github.com/fake/repo \
135158
-e RUNNER_TOKEN=faketoken \
@@ -140,7 +163,7 @@ jobs:
140163
exit 1
141164
fi
142165
# test RUNNER_WORKDIR_ROOT overrides the /_work base for the default per-runner workdir
143-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_workdir_root.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
166+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_workdir_root.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
144167
-e DEBUG_ONLY=true \
145168
-e REPO_URL=https://github.com/fake/repo \
146169
-e RUNNER_NAME=test \
@@ -169,8 +192,31 @@ jobs:
169192
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
170193
- name: Install Goss and dgoss
171194
run: |
172-
curl -fsSL https://goss.rocks/install | sh
173-
export PATH=$PATH:/usr/local/bin
195+
set -euo pipefail
196+
197+
VERSION="v0.4.9"
198+
BIN_DIR="$HOME/.local/bin"
199+
200+
mkdir -p "$BIN_DIR"
201+
echo "$BIN_DIR" >> "$GITHUB_PATH"
202+
203+
ARCH="${{ matrix.platform }}"
204+
if [ "$ARCH" != "amd64" ] && [ "$ARCH" != "arm64" ]; then
205+
echo "Unsupported platform: $ARCH"
206+
exit 1
207+
fi
208+
209+
curl -fsSL \
210+
-o "$BIN_DIR/goss" \
211+
"https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-${ARCH}"
212+
213+
curl -fsSL \
214+
-o "$BIN_DIR/dgoss" \
215+
"https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss"
216+
217+
chmod +x "$BIN_DIR/goss" "$BIN_DIR/dgoss"
218+
219+
"$BIN_DIR/goss" --version
174220
- name: Get current Git SHA
175221
id: vars
176222
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -213,7 +259,7 @@ jobs:
213259
echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
214260
echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
215261
# test the edge case from deregistration on reusable runners
216-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
262+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
217263
-e DEBUG_ONLY=true \
218264
-e ACCESS_TOKEN=notreal \
219265
-e LABELS=linux,x64 \
@@ -228,11 +274,11 @@ jobs:
228274
exit 1
229275
fi
230276
# test the base
231-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
277+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
232278
# test the final image but with all defaults
233-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
279+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
234280
# test the final image but with non-default values
235-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
281+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
236282
-e DEBUG_ONLY=true \
237283
-e RUNNER_NAME=huzzah \
238284
-e REPO_URL=https://github.com/myoung34/docker-github-actions-runner \
@@ -255,7 +301,7 @@ jobs:
255301
-e DISABLE_AUTO_UPDATE=true \
256302
${GH_RUNNER_IMAGE} 10
257303
# test the EXIT trap on process crash
258-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_trap_exit.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
304+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_trap_exit.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
259305
-e DEBUG_ONLY=false \
260306
-e REPO_URL=https://github.com/fake/repo \
261307
-e RUNNER_TOKEN=faketoken \
@@ -266,7 +312,7 @@ jobs:
266312
exit 1
267313
fi
268314
# test RUNNER_WORKDIR_ROOT overrides the /_work base for the default per-runner workdir
269-
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_workdir_root.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
315+
GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_workdir_root.yaml GOSS_SLEEP=1 $HOME/.local/bin/dgoss run --entrypoint /usr/bin/sleep \
270316
-e DEBUG_ONLY=true \
271317
-e REPO_URL=https://github.com/fake/repo \
272318
-e RUNNER_NAME=test \

0 commit comments

Comments
 (0)