mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
bak
This commit is contained in:
commit
249d048d34
11 changed files with 744 additions and 0 deletions
28
Taskfile.yaml
Normal file
28
Taskfile.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
version: 3
|
||||
output: prefixed
|
||||
tasks:
|
||||
deps:
|
||||
sources:
|
||||
- jsonnetfile*.json
|
||||
generates:
|
||||
- vendor/**/*
|
||||
cmds:
|
||||
- jb install
|
||||
build:
|
||||
desc: "Builds the specified template"
|
||||
summary: |
|
||||
Example: task build TEMPLATE=nix-docker
|
||||
deps: [ deps ]
|
||||
sources:
|
||||
- "{{ .TEMPLATE }}/*"
|
||||
generates:
|
||||
- "{{ .TEMPLATE }}/out.tf.json"
|
||||
cmds:
|
||||
- inka export ./{{ .TEMPLATE }} --out ./{{ .TEMPLATE }}/out.tf.json
|
||||
upload-to-coder:
|
||||
desc: "Uploads the specified template to coder"
|
||||
deps: [ build ]
|
||||
dir: "{{ .TEMPLATE }}"
|
||||
interactive: true
|
||||
cmds:
|
||||
- coder templates push "{{ .TEMPLATE }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue