27 lines
580 B
YAML
27 lines
580 B
YAML
version: '3'
|
|
|
|
vars:
|
|
NAME: code.jhot.me/jhot/docker-s3-backup
|
|
|
|
tasks:
|
|
default:
|
|
vars:
|
|
TAG: latest
|
|
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:
|
|
- task: build
|
|
vars:
|
|
NAME: "{{.NAME}}"
|
|
- task: push
|
|
vars:
|
|
NAME: "{{.NAME}}"
|
|
- git tag "{{.TAG}}"
|
|
- git push origin "{{.TAG}}"
|