ansible-deployment-container/.drone.yml
Simon Cornet 592e2943c5
Some checks failed
continuous-integration/drone/push Build is failing
[DRONE] Rewrite build and publish CI
2022-10-07 14:12:13 +02:00

28 lines
634 B
YAML

---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: 'docker.io/library/docker'
name: 'publish'
pull: 'always'
privileged: true
volumes:
- name: 'docker_socket'
path: '/var/run/docker.sock'
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'
volumes:
- name: 'docker_socket'
host:
path: '/var/run/docker.sock'