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

Commit 498a276

Browse files
authored
Merge pull request #6 from Diesel-Net/development
fix docker tag not matching 'production'
2 parents e5b6542 + ba418ce commit 498a276

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.drone.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ clone:
88

99
steps:
1010

11-
- name: docker build & push
11+
- name: docker build & push (dev)
1212
image: plugins/docker
1313
settings:
1414
mirror: dockerhub.nexus.diesel.net
@@ -23,12 +23,28 @@ steps:
2323
when:
2424
branch:
2525
- development
26-
- stable
2726
event:
2827
- push
2928

29+
- name: docker build & push (prod)
30+
image: plugins/docker
31+
settings:
32+
mirror: dockerhub.nexus.diesel.net
33+
registry: docker.nexus.diesel.net
34+
username:
35+
from_secret: nexus_user
36+
password:
37+
from_secret: nexus_pass
38+
repo: docker.nexus.diesel.net/${DRONE_REPO_NAME}
39+
tags:
40+
- production-latest
41+
when:
42+
branch:
43+
- stable
44+
event:
45+
- push
3046

31-
- name: configure & deploy (development)
47+
- name: configure & deploy (dev)
3248
image: plugins/ansible:3
3349
environment:
3450
ANSIBLE_CONFIG: .ansible/ansible.cfg
@@ -46,7 +62,7 @@ steps:
4662
event:
4763
- push
4864

49-
- name: configure & deploy (production)
65+
- name: configure & deploy (prod)
5066
image: plugins/ansible:3
5167
environment:
5268
ANSIBLE_CONFIG: .ansible/ansible.cfg

0 commit comments

Comments
 (0)