Locally build runner image instead of pulling it (#473)

* Fix acceptance helm test not using newly built controller image

* Locally build runner image instead of pulling it

* Revert runner controller image pull policy to always

and add a line to the test deployment to use IfNotPresent

* Change runner repository from summerwind/action-runner to the owner of actions-runner-controller.

Also fix some Makefile formatting.

* Undo renaming acceptance/pull to docker-pull

* Some env var cleanup

Rename USERNAME to DOCKER_USER(is still used for github too tho)
Add RUNNER_NAME var(defaults to $DOCKER_USER/actions-runner)
Add TEST_REPO(defaults to $DOCKER_USER/actions-runner-controller)
This commit is contained in:
ToMe25
2021-05-01 08:10:57 +02:00
committed by GitHub
parent 358146ee54
commit ba175148c8
7 changed files with 41 additions and 28 deletions

View File

@@ -27,7 +27,9 @@ if [ "${tool}" == "helm" ]; then
-n actions-runner-system \
--create-namespace \
--set syncPeriod=5m \
--set authSecret.create=false
--set authSecret.create=false \
--set image.repository=${NAME} \
--set image.tag=${VERSION}
kubectl -n actions-runner-system wait deploy/actions-runner-controller --for condition=available --timeout 60s
else
kubectl apply \
@@ -39,5 +41,4 @@ fi
# Adhocly wait for some time until actions-runner-controller's admission webhook gets ready
sleep 20
kubectl apply \
-f acceptance/testdata/runnerdeploy.yaml
cat acceptance/testdata/runnerdeploy.yaml | envsubst | kubectl apply -f -