chore: Add drone CI configuration.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Harton 2023-07-19 13:08:02 +12:00
parent f70995be98
commit 484361944b
Signed by: james
GPG key ID: 90E82DAA13F624F4

31
.drone.yml Normal file
View file

@ -0,0 +1,31 @@
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: {}