-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yml
44 lines (41 loc) · 1.39 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
version: "3"
tasks:
default:
silent: true
cmds:
- task -l
test:
desc: |-
task APP=<app> CHANNEL=<channel> BASE=<true/false> test
cmds:
- task: download-goss
- >-
cue vet --schema '#Spec' ./apps/{{.APP}}/metadata.json metadata.rules.cue
- >-
docker buildx build --progress=plain --load
-t {{.APP}}:{{.CHANNEL}}
--build-arg CHANNEL={{.CHANNEL}}
--build-arg VERSION=$(bash ./.github/scripts/upstream.sh "{{.APP}}" "{{.CHANNEL}}")
-f ./apps/{{.APP}}/Dockerfile .
- >-
./.goss/dgoss run {{.APP}}:{{.CHANNEL}} {{if eq .BASE "true"}}tail -f /dev/null{{end}}
env:
CONTAINER_RUNTIME: docker
GOSS_PATH: ./.goss/goss
GOSS_OPTS: --retry-timeout 15s --sleep 2s --color --format documentation
GOSS_FILE: ./apps/{{.APP}}/ci/goss.yaml
download-goss:
silent: true
vars:
# renovate: datasource=github-releases depName=aelsabbahy/goss
GOSS_VERSION: v0.3.18
cmds:
- mkdir -p ./.goss
- curl -fsSL -o ./.goss/goss https://github.com/aelsabbahy/goss/releases/download/{{.GOSS_VERSION}}/goss-linux-amd64
- chmod +x ./.goss/goss
- curl -fsSL -o ./.goss/dgoss https://raw.githubusercontent.com/aelsabbahy/goss/{{.GOSS_VERSION}}/extras/dgoss/dgoss
- chmod +x ./.goss/dgoss
status:
- test -f ./.goss/goss
- test -f ./.goss/dgoss