From 8a8fe0032717c367ab36e89b077a0fb065eeef4e Mon Sep 17 00:00:00 2001 From: jhot Date: Tue, 31 Oct 2023 15:37:36 -0600 Subject: [PATCH] Drone build init --- .drone.yml | 13 +++++++++++++ Taskfile.yml | 7 ++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .drone.yml 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"}}'