File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ anchors:
38
38
- ARTIFACTORY_USER
39
39
- GITHUB_TOKEN
40
40
41
+ when_internal_branch : &when_internal_branch
42
+ when :
43
+ event : [push]
44
+ branch : [internal]
45
+
41
46
steps :
42
47
- name : setup
43
48
image : ubuntu
@@ -59,8 +64,20 @@ steps:
59
64
ENVIRONMENT : production
60
65
AMPLITUDE_API_KEY : f0b9cf5c530426c3dbacb91e74f009a5
61
66
67
+ # Push the staging image, tagged with the branch name. Useful for testing the image in fc-datahub.
68
+ - name : docker_frontend_development
69
+ << : *docker_build_config
70
+ settings :
71
+ context : /drone/src/staging/
72
+ dockerfile : /drone/src/staging/docker/datahub-frontend/Dockerfile
73
+ tags :
74
+ - ${DRONE_BRANCH//\//-}
75
+ depends_on :
76
+ - build_frontend_staging
77
+
62
78
- name : docker_frontend_staging
63
79
<< : *docker_build_config
80
+ << : *when_internal_branch
64
81
settings :
65
82
context : /drone/src/staging/
66
83
dockerfile : /drone/src/staging/docker/datahub-frontend/Dockerfile
71
88
72
89
- name : docker_frontend_production
73
90
<< : *docker_build_config
91
+ << : *when_internal_branch
74
92
settings :
75
93
context : /drone/src/production/
76
94
dockerfile : /drone/src/production/docker/datahub-frontend/Dockerfile
You can’t perform that action at this time.
0 commit comments