kind: pipeline name: default type: docker steps: - name: install coder cli image: alpine:3.16 commands: - curl -L https://coder.com/install.sh | sh - name: push templates image: ghcr.io/coder/coder:v0.11.0 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 - | for template in * ; do [ -e "$template/main.tf" ] || continue coder templates push -d $template --yes $template || \ coder templates create -d $template --yes $template done