docker-s3-backup/Taskfile.yml

21 lines
457 B
YAML
Raw Normal View History

2023-09-14 22:15:37 +00:00
version: '3'
2023-09-19 11:48:08 +00:00
vars:
NAME: code.jhot.me/jhot/docker-s3-backup
2023-09-14 22:15:37 +00:00
tasks:
2023-09-19 11:48:08 +00:00
default:
2023-09-14 22:15:37 +00:00
vars:
TAG: latest
2023-09-19 11:48:08 +00:00
build:
cmds:
- docker buildx build --platform linux/amd64,linux/arm64 -t "{{.NAME}}:{{.TAG}}" .
push:
cmds:
- docker push "{{.NAME}}:{{.TAG}}"
tag:
prompt: This will push a git tag and docker image versioned {{.TAG}}... Do you want to continue?
cmds:
- git tag "{{.TAG}}"
- git push origin "{{.TAG}}"