runtime/Taskfile.yml
Adam Štrauch b007620e8d
All checks were successful
continuous-integration/drone/push Build is passing
PHP 7.4.33 on Debian 11
2023-09-19 23:47:33 +02:00

38 lines
783 B
YAML

# https://taskfile.dev
version: '3'
vars:
REPO: harbor.hq.rosti.cz/rosti/runtime
VERSION: 2023.04-2
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:"
- 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:"
- python3 generate_versions.py
push:
cmds:
- docker push {{ .REPO }}:{{ .VERSION }}