docker-s3-backup/.drone.yml

22 lines
629 B
YAML
Raw Normal View History

2023-10-31 21:37:36 +00:00
kind: pipeline
type: docker
name: ci
steps:
- name: build
image: debian:12
2023-11-01 15:03:33 +00:00
volumes:
- name: dockersocket
path: /var/run/docker.sock
2023-10-31 21:37:36 +00:00
commands:
2023-11-01 14:51:08 +00:00
- TAG=$${DRONE_TAG:-$DRONE_BRANCH} # set tag to tag name (if applicable) or branch name
2023-11-01 14:48:52 +00:00
- 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
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d # install task
2023-11-01 15:03:33 +00:00
- ./bin/task build # build the docker image
volumes:
- name: dockersocket
host:
path: /var/run/docker.sock