diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b3424c1 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +type: docker +name: ci + +steps: +- name: build + image: debian:12 + commands: + - echo $${DRONE_TAG:-$DRONE_REPO_BRANCH} + # - apt-get update && apt-get install -y curl + # - curl -fsSL https://get.docker.com -o get-docker.sh + # - sh ./get-docker.sh + # - docker buildx build --platform linux/amd64,linux/arm64 -t \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index f5b86c4..3f06784 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,12 +4,11 @@ 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}}" . + vars: + TAG: '{{.TAG | default "latest"}}' push: cmds: - docker push "{{.NAME}}:{{.TAG}}" @@ -18,3 +17,5 @@ tasks: cmds: - git tag "{{.TAG}}" - git push origin "{{.TAG}}" + vars: + TAG: '{{.TAG | default "latest"}}'