[CI] Move runner back to docker
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
592e2943c5
commit
c4ca7ca23c
40
.drone.yml
40
.drone.yml
@ -1,27 +1,31 @@
|
|||||||
---
|
---
|
||||||
kind: 'pipeline'
|
kind: 'pipeline'
|
||||||
name: 'build'
|
name: 'build'
|
||||||
type: 'kubernetes'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# build and publish
|
# build and publish
|
||||||
- image: 'docker.io/library/docker'
|
- image: 'plugins/docker'
|
||||||
name: 'publish'
|
name: 'publish'
|
||||||
pull: 'always'
|
pull: 'always'
|
||||||
privileged: true
|
settings:
|
||||||
|
|
||||||
volumes:
|
# registery and repos
|
||||||
- name: 'docker_socket'
|
registry: 'docker.io'
|
||||||
path: '/var/run/docker.sock'
|
cache_from: 'rakepanorama/ansible-deployment'
|
||||||
|
repo: 'rakepanorama/ansible-deployment'
|
||||||
|
|
||||||
commands:
|
# build stuff
|
||||||
- 'echo building image ${IMG}'
|
dockerfile: 'Dockerfile.linux.amd64'
|
||||||
- 'docker login -u rakepanorama --password=8qE9RvDSFt2KNfyQ docker.io'
|
daemon_off: 'false'
|
||||||
- 'docker build -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .'
|
|
||||||
- 'docker push -a'
|
|
||||||
|
|
||||||
volumes:
|
# authentication
|
||||||
- name: 'docker_socket'
|
username:
|
||||||
host:
|
from_secret: 'docker_username'
|
||||||
path: '/var/run/docker.sock'
|
password:
|
||||||
|
from_secret: 'docker_password'
|
||||||
|
|
||||||
|
# tags
|
||||||
|
tags:
|
||||||
|
- 'v0.9'
|
||||||
|
- 'latest'
|
||||||
|
Loading…
Reference in New Issue
Block a user