From 5a7d3fc48dabd56a4acc191c6794310c1e1a5a6d Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 15 Mar 2022 14:32:56 +0100 Subject: [PATCH] [CI] Added first drone config --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..913eca2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +--- +kind: 'pipeline' +name: 'build' + +steps: +- image: 'plugins/docker' + name: 'dryrun' + pull: 'always' + settings: + cache_from: 'rakepanorama/ansible-deployment' + daemon_off: 'false' + dockerfile: 'Dockerfile.linux.amd64' + dry_run: 'true' + repo: 'docker.io/rakepanorama/ansible-deployment' + tags: + - 'latest' + - 'v0.3' + +- image: 'plugins/docker' + name: 'publish' + pull: 'always' + settings: + auto_tag: 'true' + auto_tag_suffix: 'linux-amd64' + cache_from: 'rakepanorama/ansible-deployment' + daemon_off: 'false' + dockerfile: 'Dockerfile.linux.amd64' + password: + from_secret: 'docker_password' + repo: 'rakepanorama/ansible-deployment' + username: + from_secret: 'docker_username'