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
|
||||
|
||||
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"}}'
|
||||
|
|
Loading…
Reference in New Issue