Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from Diesel-Net/development
Browse files Browse the repository at this point in the history
fix docker tag not matching 'production'
  • Loading branch information
tomdaley92 authored Aug 2, 2021
2 parents e5b6542 + ba418ce commit 498a276
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .drone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ clone:

steps:

- name: docker build & push
- name: docker build & push (dev)
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
Expand All @@ -23,12 +23,28 @@ steps:
when:
branch:
- development
- stable
event:
- push

- name: docker build & push (prod)
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
repo: docker.nexus.diesel.net/${DRONE_REPO_NAME}
tags:
- production-latest
when:
branch:
- stable
event:
- push

- name: configure & deploy (development)
- name: configure & deploy (dev)
image: plugins/ansible:3
environment:
ANSIBLE_CONFIG: .ansible/ansible.cfg
Expand All @@ -46,7 +62,7 @@ steps:
event:
- push

- name: configure & deploy (production)
- name: configure & deploy (prod)
image: plugins/ansible:3
environment:
ANSIBLE_CONFIG: .ansible/ansible.cfg
Expand Down

0 comments on commit 498a276

Please sign in to comment.