[CI] Move runner back to docker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Cornet 2022-10-07 14:31:01 +02:00
parent 592e2943c5
commit c4ca7ca23c

View File

@ -1,27 +1,31 @@
---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: 'docker.io/library/docker'
- image: 'plugins/docker'
name: 'publish'
pull: 'always'
privileged: true
settings:
volumes:
- name: 'docker_socket'
path: '/var/run/docker.sock'
# registery and repos
registry: 'docker.io'
cache_from: 'rakepanorama/ansible-deployment'
repo: 'rakepanorama/ansible-deployment'
commands:
- 'echo building image ${IMG}'
- 'docker login -u rakepanorama --password=8qE9RvDSFt2KNfyQ docker.io'
- 'docker build -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .'
- 'docker push -a'
# build stuff
dockerfile: 'Dockerfile.linux.amd64'
daemon_off: 'false'
volumes:
- name: 'docker_socket'
host:
path: '/var/run/docker.sock'
# authentication
username:
from_secret: 'docker_username'
password:
from_secret: 'docker_password'
# tags
tags:
- 'v0.9'
- 'latest'