Skip to content

Commit

Permalink
Merge pull request #50 from FundingCircle/fix-drone-conditions
Browse files Browse the repository at this point in the history
Add missing conditions to docker_frontend deploy steps
  • Loading branch information
maiarareinaldo authored Feb 12, 2024
2 parents f386b3f + c49beb0 commit 61c06c7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ anchors:
- ARTIFACTORY_USER
- GITHUB_TOKEN

when_internal_branch: &when_internal_branch
when:
event: [push]
branch: [internal]

steps:
- name: setup
image: ubuntu
Expand All @@ -59,8 +64,20 @@ steps:
ENVIRONMENT: production
AMPLITUDE_API_KEY: f0b9cf5c530426c3dbacb91e74f009a5

# Push the staging image, tagged with the branch name. Useful for testing the image in fc-datahub.
- name: docker_frontend_development
<<: *docker_build_config
settings:
context : /drone/src/staging/
dockerfile: /drone/src/staging/docker/datahub-frontend/Dockerfile
tags:
- ${DRONE_BRANCH//\//-}
depends_on:
- build_frontend_staging

- name: docker_frontend_staging
<<: *docker_build_config
<<: *when_internal_branch
settings:
context: /drone/src/staging/
dockerfile: /drone/src/staging/docker/datahub-frontend/Dockerfile
Expand All @@ -71,6 +88,7 @@ steps:

- name: docker_frontend_production
<<: *docker_build_config
<<: *when_internal_branch
settings:
context: /drone/src/production/
dockerfile: /drone/src/production/docker/datahub-frontend/Dockerfile
Expand Down

0 comments on commit 61c06c7

Please sign in to comment.