Drone build init
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
parent
2e1267f20b
commit
8a8fe00327
|
@ -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
|
|
@ -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"}}'
|
||||||
|
|
Loading…
Reference in New Issue