This commit is contained in:
parent
61cc7e9be9
commit
e4aaf09d27
@ -3,12 +3,8 @@ name: default
|
|||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install coder cli
|
|
||||||
image: alpine:3.16
|
|
||||||
commands:
|
|
||||||
- curl -L https://coder.com/install.sh | sh
|
|
||||||
- name: push templates
|
- name: push templates
|
||||||
image: ghcr.io/coder/coder:v0.11.0
|
image: alpine:3.16
|
||||||
environment:
|
environment:
|
||||||
CODER_URL: http://coder.coder.svc.cluster.local
|
CODER_URL: http://coder.coder.svc.cluster.local
|
||||||
CODER_SESSION_TOKEN:
|
CODER_SESSION_TOKEN:
|
||||||
@ -16,6 +12,7 @@ steps:
|
|||||||
CODER_TEMPLATE_VERSION: $${DRONE_COMMIT_SHA}
|
CODER_TEMPLATE_VERSION: $${DRONE_COMMIT_SHA}
|
||||||
commands:
|
commands:
|
||||||
- apk add git
|
- apk add git
|
||||||
|
- curl https://github.com/coder/coder/releases/download/v0.11.0/coder_0.11.0_linux_amd64.tar.gz | tar -xzf - -C /usr/local/bin
|
||||||
- |
|
- |
|
||||||
for template in * ; do
|
for template in * ; do
|
||||||
[ -e "$template/main.tf" ] || continue
|
[ -e "$template/main.tf" ] || continue
|
||||||
|
|||||||
Reference in New Issue
Block a user