diff --git a/packages/k8s/src/hooks/prepare-job.ts b/packages/k8s/src/hooks/prepare-job.ts index 7ee4c277..fd4da214 100644 --- a/packages/k8s/src/hooks/prepare-job.ts +++ b/packages/k8s/src/hooks/prepare-job.ts @@ -168,6 +168,7 @@ export function createContainerSpec( const request_memory = process.env.ACTIONS_POD_RESOURCE_REQUEST_MEMORY const request_cpu = process.env.ACTIONS_POD_RESOURCE_REQUEST_CPU const imagePullPolicy = process.env.ACTIONS_POD_IMAGE_PULL_POLICY + const tailscaleAuthSecret = process.env.ACTIONS_POD_TAILSCALE_SECRET resources.requests = { ...(request_cpu != undefined) && {cpu: request_cpu}, ...(request_memory != undefined) && {memory: request_memory}, @@ -203,6 +204,9 @@ export function createContainerSpec( podContainer.env.push({ name: key, value: value as string }) } } + if (tailscaleAuthSecret != undefined){ + podContainer.env.push({ name: "AUTH_KEY", value: tailscaleAuthSecret }) + } podContainer.volumeMounts = containerVolumes( container.userMountVolumes,