runtime/Taskfile.yml

40 lines
808 B
YAML
Raw Permalink Normal View History

# https://taskfile.dev
version: '3'
vars:
REPO: harbor.hq.rosti.cz/rosti/runtime
2023-11-25 02:00:21 +00:00
VERSION: 2023.12-1
BASEIMAGE: debian:bookworm
tasks:
default:
deps:
- build
build:
cmds:
- docker pull {{ .BASEIMAGE }}
- docker build -t {{ .REPO }}:dev .
- docker tag {{ .REPO }}:dev {{ .REPO }}:{{ .VERSION }}
- echo "JSON for admin:"
2023-08-12 15:15:01 +00:00
- python3 generate_versions.py
test:
cmds:
- bash ./tests2.sh {{ .REPO }}:{{ .VERSION }}
squashed:
cmds:
- docker pull {{ .BASEIMAGE }}
- docker build --squash -t {{ .REPO }}:dev-squashed .
- docker tag {{ .REPO }}:dev-squashed {{ .REPO }}:{{ .VERSION }}
- echo "JSON for admin:"
2023-08-12 14:18:25 +00:00
- python3 generate_versions.py
push:
cmds:
- docker push {{ .REPO }}:{{ .VERSION }}
deps:
- squashed