diff --git a/internal/spec/spec.go b/internal/spec/spec.go index 163355a..059f814 100644 --- a/internal/spec/spec.go +++ b/internal/spec/spec.go @@ -158,7 +158,7 @@ func GetPodSpec(gitHubScope GitHubScopeDetails, bootstrapParams params.Bootstrap Containers: []corev1.Container{ { Name: "runner", - Image: "edp.buildth.ing/devfw-cicd/garm-act-runner:1", + Image: bootstrapParams.Image, ImagePullPolicy: "Always", Env: envs, VolumeMounts: []corev1.VolumeMount{ diff --git a/runner/Dockerfile b/runner/Dockerfile index d1e45a8..6296f46 100644 --- a/runner/Dockerfile +++ b/runner/Dockerfile @@ -1,4 +1,3 @@ -# docker run -e METADATA_URL=https://garm.garm-provider-test.t09.de/api/v1/metadata -e CALLBACK_URL=https://garm.garm-provider-test.t09.de/api/v1/callbacks -e GITHUB_URL=https://garm-provider-test.t09.de/ -e RUNNER_NAME="lala" -e BEARER_TOKEN="$BEARER_TOKEN" test FROM ghcr.io/catthehacker/ubuntu:act-22.04 USER root diff --git a/runner/entrypoint.sh b/runner/entrypoint.sh index 4c68353..c0db935 100755 --- a/runner/entrypoint.sh +++ b/runner/entrypoint.sh @@ -39,4 +39,6 @@ forgejo-runner generate-config > config.yml; unset RUNNER_SECRET unset BEARER_TOKEN +docker buildx create --use --name sidecar unix:///run/user/1000/buildkit/buildkitd.sock + /bin/forgejo-runner --config config.yml daemon