Skip to content

Commit e40248b

Browse files
committed
Fix readme for tests
1 parent cf3f558 commit e40248b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,14 @@ To test:
8989
```
9090
$ # need to set minimum vars for the goss test interpolation
9191
$ echo "os: ubuntu" >goss_vars.yaml
92-
$ echo "oscodename: focal >>goss_vars.yaml
92+
$ echo "oscodename: focal" >>goss_vars.yaml
9393
$ echo "arch: x86_64" >>goss_vars.yaml
9494
$ docker build -t my-base-test -f Dockerfile.base .
95-
$ # Run the base test from Dockerfile.base on the current git HEAD
96-
$ GH_RUNNER_IMAGE="my-base-test" GOSS_VARS=goss_vars.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true \
97-
${GH_RUNNER_IMAGE} \
98-
10
9995
$ # Use the base image in your final
10096
$ sed -i.bak 's/^FROM.*/FROM my-base-test/g' Dockerfile
10197
$ docker build -t my-full-test -f Dockerfile .
10298
$ # Run the full test from Dockerfile.base on the current git HEAD
103-
$ GH_RUNNER_IMAGE="my-full-test" GOSS_VARS=goss_vars.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
99+
$ GOSS_VARS=goss_vars.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
104100
-e DEBUG_ONLY=true \
105101
-e RUNNER_NAME=huzzah \
106102
-e REPO_URL=https://github.com/myoung34/docker-github-actions-runner \
@@ -115,11 +111,11 @@ $ GH_RUNNER_IMAGE="my-full-test" GOSS_VARS=goss_vars.yaml GOSS_FILE=goss_full.ya
115111
-e ENTERPRISE_NAME=emyoung34 \
116112
-e LABELS=blue,green \
117113
-e RUNNER_TOKEN=3456 \
118-
-e RUNNER_WORKDIR=tmp/a \
114+
-e RUNNER_WORKDIR=/tmp/a \
119115
-e RUNNER_GROUP=wat \
120116
-e GITHUB_HOST=github.example.com \
121117
-e DISABLE_AUTOMATIC_DEREGISTRATION=true \
122118
-e EPHEMERAL=true \
123119
-e DISABLE_AUTO_UPDATE=true \
124-
${GH_RUNNER_IMAGE} 10
120+
my-full-test 10
125121
```

0 commit comments

Comments
 (0)