asdf_container/.drone.yml
James Harton 484361944b
All checks were successful
continuous-integration/drone/push Build is passing
chore: Add drone CI configuration.
2023-07-19 13:52:36 +12:00

31 lines
732 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
REGISTRY_TOKEN:
from_secret: REGISTRY_TOKEN
commands:
- sleep 5
- echo $REGISTRY_TOKEN | docker login code.harton.nz -u james --password-stdin
- docker build -t asdf_container --cache-from=code.harton.nz/james/asdf_container:latest .
- docker tag asdf_container code.harton.nz/james/asdf_container:latest
- docker push code.harton.nz/james/asdf_container:latest
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}