Compare commits

..

No commits in common. "e93cf35ae3facc77f2cbabde5ef25893b697d9e6" and "298076e25bcd613534668529021baefea1906f86" have entirely different histories.

3 changed files with 23 additions and 3 deletions

View File

@ -1,4 +1,4 @@
CODER_URL = "http://coder.coder.svc.cluster.local/bin/coder-linux-amd64" CODER_URL = "https://github.com/coder/coder/releases/download/v0.24.1/coder_0.24.1_linux_amd64.tar.gz"
TEMPLATES = { TEMPLATES = {
"base": { "base": {

21
.drone.yml Normal file
View File

@ -0,0 +1,21 @@
kind: pipeline
name: default
type: docker
steps:
- name: push templates
image: alpine:3.16
environment:
CODER_URL: http://coder.coder.svc.cluster.local
CODER_SESSION_TOKEN:
from_secret: CODER_SESSION_TOKEN
CODER_TEMPLATE_VERSION: $${DRONE_COMMIT_SHA}
commands:
- apk add git
- wget -q -O- https://github.com/coder/coder/releases/download/v0.11.0/coder_0.11.0_linux_amd64.tar.gz | tar -xzf - -C /usr/local/bin ./coder
- |
for template in * ; do
[ -e "$template/main.tf" ] || continue
coder templates push -d $template --yes $template || \
coder templates create -d $template --yes $template
done

View File

@ -2,7 +2,6 @@
{% set coder_user_uid = 3434 %} {% set coder_user_uid = 3434 %}
{% set coder_user_gid = 3434 %} {% set coder_user_gid = 3434 %}
{% set vs_code_root = "/home/circleci/project" %}
{% block kubernetes_pod_main_env %} {% block kubernetes_pod_main_env %}
env { env {
@ -18,7 +17,7 @@
{% block kubernetes_pod_main_volume_mount %} {% block kubernetes_pod_main_volume_mount %}
volume_mount { volume_mount {
mount_path = "/home/circleci/project" mount_path = "/home/circleci"
name = "home" name = "home"
read_only = false read_only = false
} }