runtime/Taskfile.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

# https://taskfile.dev
version: '3'
vars:
REPO: harbor.hq.rosti.cz
2024-11-23 15:26:03 +00:00
REPO_PUBLIC: rosti/runtime
VERSION: 2025.01-1
BASEIMAGE: debian:bookworm
tasks:
default:
deps:
- build
2024-08-13 17:59:45 +00:00
pipeline:
cmds:
- task: build
- task: test
- task: push
build:
cmds:
- docker pull {{ .BASEIMAGE }}
2025-01-19 23:20:54 +00:00
- docker build --progress plain -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 }}
2025-01-19 23:20:54 +00:00
- docker build --progress plain --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 }}
2024-08-13 17:59:45 +00:00
# deps:
# - squashed
2024-11-23 15:26:03 +00:00
install:
cmds:
- ssh rosti-node-26 docker pull {{ .REPO }}:{{ .VERSION }}
- ssh rosti-node-26 docker tag {{ .REPO }}:{{ .VERSION }} {{ .REPO_PUBLIC }}:{{ .VERSION }}
2024-11-23 15:26:03 +00:00
publish:
cmds:
- ssh rosti-node-26 docker push {{ .REPO_PUBLIC }}:{{ .VERSION }}