2023-08-12 12:16:21 +00:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
vars:
|
|
|
|
REPO: harbor.hq.rosti.cz/rosti/runtime
|
2024-08-13 17:59:45 +00:00
|
|
|
VERSION: 2024.09-1
|
2023-08-12 12:16:21 +00:00
|
|
|
BASEIMAGE: debian:bookworm
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
default:
|
|
|
|
deps:
|
|
|
|
- build
|
|
|
|
|
2024-08-13 17:59:45 +00:00
|
|
|
pipeline:
|
|
|
|
cmds:
|
|
|
|
- task: build
|
|
|
|
- task: test
|
|
|
|
- task: push
|
|
|
|
|
2023-08-12 12:16:21 +00:00
|
|
|
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
|
2023-08-12 12:16:21 +00:00
|
|
|
|
|
|
|
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
|
2023-08-12 12:16:21 +00:00
|
|
|
|
|
|
|
push:
|
|
|
|
cmds:
|
|
|
|
- docker push {{ .REPO }}:{{ .VERSION }}
|
2024-08-13 17:59:45 +00:00
|
|
|
# deps:
|
|
|
|
# - squashed
|