This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/.drone.yml
Steve McMaster f9594b78f9
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Add android and python
2022-11-05 16:28:13 +00:00

24 lines
724 B
YAML

kind: pipeline
name: default
type: docker
environment:
CODER_URL: http://coder.coder.svc.cluster.local
CODER_SESSION_TOKEN:
from_secret: CODER_SESSION_TOKEN
CODER_TEMPLATE_VERSION: $${DRONE_COMMIT_SHA}
CODER_VERSION: 0.11.0
steps:
- name: push templates
image: alpine:3.16
commands:
- apk add git
- wget -O- https://github.com/coder/coder/releases/download/v$${CODER_VERSION}/coder_$${CODER_VERSION}_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