Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Switch continuous deployment pipeline
Browse files Browse the repository at this point in the history
... to deploy this vulnerable-people-form app instead of the
business-volunteer-form
  • Loading branch information
richardTowers committed Mar 21, 2020
1 parent 25c4411 commit 83b28b1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion app.json
@@ -1,6 +1,6 @@
{
"name": "Coronavirus form",
"repository": "https://github.com/alphagov/govuk-coronavirus-business-volunteer-form",
"repository": "https://github.com/alphagov/govuk-coronavirus-vulnerable-people-form",
"env": {
"GOVUK_APP_DOMAIN": {
"value": "www.gov.uk"
Expand Down
48 changes: 24 additions & 24 deletions concourse/pipeline.yml
Expand Up @@ -5,36 +5,36 @@ resource_types:
source:
repository: nulldriver/cf-cli-resource

- name: travis
type: docker-image
source:
repository: rbakergds/travis-resource
tag: latest
#- name: travis
# type: docker-image
# source:
# repository: rbakergds/travis-resource
# tag: latest

resources:
- name: govuk-coronavirus-business-volunteer-form
- name: govuk-coronavirus-vulnerable-people-form
type: git
icon: github-circle
source:
uri: https://github.com/alphagov/govuk-coronavirus-business-volunteer-form
uri: https://github.com/alphagov/govuk-coronavirus-vulnerable-people-form
branch: master

- name: govuk-coronavirus-business-volunteer-form-travis-build
type: travis
icon: sync
source:
repository: alphagov/govuk-coronavirus-business-volunteer-form
travis-token: ((travis-api-token))
branch: master
pro: true
#- name: govuk-coronavirus-vulnerable-people-form-travis-build
# type: travis
# icon: sync
# source:
# repository: alphagov/govuk-coronavirus-vulnerable-people-form
# travis-token: ((travis-api-token))
# branch: master
# pro: true

jobs:
- name: deploy-to-staging
serial: true
plan:
- get: govuk-coronavirus-business-volunteer-form-travis-build
# - get: govuk-coronavirus-vulnerable-people-form-travis-build
- get: govuk-coronavirus-vulnerable-people-form
trigger: true
- get: govuk-coronavirus-business-volunteer-form
- task: paas-staging
config:
platform: linux
Expand All @@ -44,7 +44,7 @@ jobs:
repository: governmentpaas/cf-cli
tag: latest
inputs:
- name: govuk-coronavirus-business-volunteer-form
- name: govuk-coronavirus-vulnerable-people-form
path: src
params:
CF_API: https://api.cloud.service.gov.uk
Expand All @@ -64,15 +64,15 @@ jobs:
cf api "$CF_API"
cf auth
cf t -o "$CF_ORG" -s "$CF_SPACE"
cf v3-create-app govuk-coronavirus-business-volunteer-form || true
cf v3-create-app govuk-coronavirus-vulnerable-people-form || true
cf v3-apply-manifest -f manifest.yml
cf set-env govuk-coronavirus-business-volunteer-form BASIC_AUTH_PASSWORD "$BASIC_AUTH_PASSWORD"
cf v3-zdt-push govuk-coronavirus-business-volunteer-form --wait-for-deploy-complete --no-route
cf map-route govuk-coronavirus-business-volunteer-form cloudapps.digital --hostname govuk-coronavirus-business-volunteer-form-stg
cf set-env govuk-coronavirus-vulnerable-people-form BASIC_AUTH_PASSWORD "$BASIC_AUTH_PASSWORD"
cf v3-zdt-push govuk-coronavirus-vulnerable-people-form --wait-for-deploy-complete --no-route
cf map-route govuk-coronavirus-vulnerable-people-form cloudapps.digital --hostname govuk-coronavirus-vulnerable-people-form-stg
- name: smoke-test-staging
plan:
- get: govuk-coronavirus-business-volunteer-form
- get: govuk-coronavirus-vulnerable-people-form
trigger: true
passed: [deploy-to-staging]
- task: smoke-test
Expand All @@ -85,5 +85,5 @@ jobs:
run:
# TODO we can come up with a more thorough test than this
path: curl
args: ['--fail', '--silent', '--verbose', '--user', 'gds:((basic-auth-password))', 'https://govuk-coronavirus-business-volunteer-form-stg.cloudapps.digital/']
args: ['--fail', '--silent', '--verbose', '--user', 'gds:((basic-auth-password))', 'https://govuk-coronavirus-vulnerable-people-form-stg.cloudapps.digital/']

4 changes: 2 additions & 2 deletions manifest.yml
@@ -1,11 +1,11 @@
---
applications:
- name: govuk-coronavirus-business-volunteer-form
- name: govuk-coronavirus-vulnerable-people-form
buildpack: ruby_buildpack
memory: 1G
instances: 5
services:
- govuk-coronavirus-business-volunteer-form-db
- govuk-coronavirus-vulnerable-people-form-db
- logit-ssl-drain
env:
GOVUK_APP_DOMAIN: cloudapps.digital
Expand Down

0 comments on commit 83b28b1

Please sign in to comment.