Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable autodeploy, don't build tag #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ steps:
image: plugins/docker
when:
branch:
- prod
- master
event: push
status: success
depends_on:
Expand All @@ -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