runtime/Taskfile.yml
Adam Štrauch 6c7c6f80fb
Some checks failed
Test build / build (push) Failing after 24m43s
Test fix, parallel procesing of Node.js builds
2025-01-19 16:00:07 +01:00

55 lines
1.1 KiB
YAML

# https://taskfile.dev
version: '3'
vars:
REPO: harbor.hq.rosti.cz
REPO_PUBLIC: rosti/runtime
VERSION: 2025.01-1
BASEIMAGE: debian:bookworm
tasks:
default:
deps:
- build
pipeline:
cmds:
- task: build
- task: test
- task: push
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 }}
# deps:
# - squashed
install:
cmds:
- ssh rosti-node-26 docker pull {{ .REPO }}:{{ .VERSION }}
- ssh rosti-node-26 docker tag {{ .REPO }}:{{ .VERSION }} {{ .REPO_PUBLIC }}:{{ .VERSION }}
publish:
cmds:
- ssh rosti-node-26 docker push {{ .REPO_PUBLIC }}:{{ .VERSION }}