This commit is contained in:
parent
f9594b78f9
commit
a2c919c77f
12
.drone.yml
12
.drone.yml
@ -2,16 +2,14 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
type: docker
|
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:
|
steps:
|
||||||
- name: push templates
|
- name: push templates
|
||||||
image: alpine:3.16
|
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:
|
commands:
|
||||||
- apk add git
|
- 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
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user