incus-sentinel/Taskfile.yml

28 lines
636 B
YAML
Raw Normal View History

2025-01-05 09:34:06 +00:00
# https://taskfile.dev
version: '3'
vars:
VERSION: v0
tasks:
build-bin:
cmds:
- GOARCH={{ .GOARCH }} go build -o bin/incus-sentinel.{{ .VERSION }}.linux.{{ .GOARCH }} main.go
silent: false
build:
cmds:
- mkdir -p bin
- task: build-bin
vars:
GOARCH: arm64
- task: build-bin
vars:
GOARCH: amd64
deploy-racker:
cmds:
- task: build
- scp bin/incus-sentinel.{{ .VERSION }}.linux.arm64 racker:/usr/local/bin/incus-sentinel.tmp
- ssh racker mv /usr/local/bin/incus-sentinel.tmp /usr/local/bin/incus-sentinel
- ssh racker systemctl restart incus-sentinel