docker-s3-backup/.drone.yml

23 lines
710 B
YAML

kind: pipeline
type: docker
name: ci
steps:
- name: build
image: debian:12
volumes:
- name: dockersocket
path: /var/run/docker.sock
commands:
- TAG=$${DRONE_TAG:-$DRONE_BRANCH} # set tag to tag name (if applicable) or branch name
- apt-get update && apt-get install -y curl # install dependencies from apt
- curl -fsSL https://get.docker.com -o get-docker.sh # install docker
- sh ./get-docker.sh
- docker buildx create --name ${DRONE_COMMIT_SHA}${DRONE_BUILD_NUMBER} --use
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d # install task
- ./bin/task build # build the docker image
volumes:
- name: dockersocket
host:
path: /var/run/docker.sock