Drone build init
continuous-integration/drone Build is passing Details

pull/5/head
jhot 2023-10-31 15:37:36 -06:00
parent 2e1267f20b
commit 8a8fe00327
Signed by: jhot
GPG Key ID: 612ED70E22571DD4
2 changed files with 17 additions and 3 deletions

13
.drone.yml Normal file
View File

@ -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

View File

@ -4,12 +4,11 @@ vars:
NAME: code.jhot.me/jhot/docker-s3-backup NAME: code.jhot.me/jhot/docker-s3-backup
tasks: tasks:
default:
vars:
TAG: latest
build: build:
cmds: cmds:
- docker buildx build --platform linux/amd64,linux/arm64 -t "{{.NAME}}:{{.TAG}}" . - docker buildx build --platform linux/amd64,linux/arm64 -t "{{.NAME}}:{{.TAG}}" .
vars:
TAG: '{{.TAG | default "latest"}}'
push: push:
cmds: cmds:
- docker push "{{.NAME}}:{{.TAG}}" - docker push "{{.NAME}}:{{.TAG}}"
@ -18,3 +17,5 @@ tasks:
cmds: cmds:
- git tag "{{.TAG}}" - git tag "{{.TAG}}"
- git push origin "{{.TAG}}" - git push origin "{{.TAG}}"
vars:
TAG: '{{.TAG | default "latest"}}'