chore: Add drone CI configuration.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f70995be98
commit
484361944b
1 changed files with 31 additions and 0 deletions
31
.drone.yml
Normal file
31
.drone.yml
Normal 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: {}
|
Loading…
Reference in a new issue