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

Internal ingress test #498

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
20 changes: 9 additions & 11 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ steps:
ALLOW_CVE_LIST_FILE: hof-services-config/Firearms_Licensing/trivy-cve-exceptions.txt
when:
event:
- pull_request
- push
- tag


# Deploy to pull request UAT environment
Expand All @@ -168,7 +166,7 @@ steps:
- bin/deploy.sh $${BRANCH_ENV}
when:
branch: master
event: pull_request
event: push

- name: setup_branch
pull: if-not-exists
Expand All @@ -183,7 +181,7 @@ steps:
include:
- master
- feature/*
event: pull_request
event: push

- name: linting_branch
<<: *linting
Expand All @@ -192,7 +190,7 @@ steps:
include:
- master
- feature/*
event: pull_request
event: push

- name: unit_tests_branch
<<: *unit_tests
Expand All @@ -201,7 +199,7 @@ steps:
include:
- master
- feature/*
event: pull_request
event: push

- name: sonar_scanner_branch
<<: *sonar_scanner
Expand All @@ -210,7 +208,7 @@ steps:
include:
- master
- feature/*
event: pull_request
event: push

- name: build_acceptance_branch
pull: if-not-exists
Expand All @@ -220,7 +218,7 @@ steps:
- docker build -f Dockerfile-acceptance -t firearms-acceptance-$${DRONE_COMMIT_SHA} .
when:
branch: master
event: pull_request
event: push

# - name: test_acceptance_branch
# pull: if-not-exists
Expand All @@ -247,7 +245,7 @@ steps:
- npm run test:acceptance
when:
branch: master
event: pull_request
event: push

# Snyk security scans which run after branch deployment to prevent blocking of PR UAT tests
- name: snyk_scan
Expand All @@ -263,7 +261,7 @@ steps:
include:
- master
- feature/*
event: pull_request
event: push

# Deploy to Master UAT environment
- name: deploy_to_uat
Expand All @@ -278,7 +276,7 @@ steps:
- bin/deploy.sh $${UAT_ENV}
when:
branch: master
event: push
event: pull_request

- name: test_acceptance_uat
<<: *acceptance_tests
Expand Down
2 changes: 1 addition & 1 deletion bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ ${KUBE_NAMESPACE} == ${BRANCH_ENV} ]]; then
elif [[ ${KUBE_NAMESPACE} == ${UAT_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml -f kube/app/service.yml
$kd -f kube/app/ingress-external.yml -f kube/app/networkpolicy-external.yml
$kd -f kube/app/ingress-internal.yml
$kd -f kube/app/ingress-internal.yml -f kube/app/networkpolicy-internal.yml
$kd -f kube/redis -f kube/html-pdf -f kube/file-vault -f kube/app/deployment.yml
elif [[ ${KUBE_NAMESPACE} == ${STG_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml -f kube/app/service.yml
Expand Down