From c74ed6694b56da104005fa04e73d0a4bd30da5ff Mon Sep 17 00:00:00 2001 From: Peder Smith Date: Sun, 19 Sep 2021 23:10:50 +0200 Subject: [PATCH] Enable autodeploy, don't build tag --- .drone.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d3ce50d..3e16c43 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: image: plugins/docker when: branch: - - prod + - master event: push status: success depends_on: @@ -57,7 +57,28 @@ steps: password: from_secret: docker_password tags: - - ${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7} - latest build_args: - RELEASE=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7} + + - name: Deploy + image: abakus/ansible-deploy + when: + branch: + - master + event: push + status: success + settings: + playbook: /infrastructure/esas/playbooks/deploy.yml + repository: + from_secret: infra_repository + tags: + - faas-fn + limit: esas + inventory: /infrastructure/inventory + vault_password: + from_secret: ansible_vault_password + private_key: + from_secret: infra_deploy_key + depends_on: + - docker