-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (34 loc) · 1.67 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
start-concourse:
docker-compose up -d
while ! wget -q http://localhost:8080 -O /dev/null; do sleep 1; done;
login:
fly -t local login --concourse-url=http://localhost:8080 --insecure --username=pay-deploy --password=test
create-team:
fly -t local set-team --team-name pay-deploy --local-user pay-deploy --non-interactive
login-team:
fly -t local-pay login --concourse-url=http://localhost:8080 --insecure --username=pay-deploy --password=test -n pay-deploy
set-pipelines:
fly -t local-pay set-pipeline \
--pipeline dev-pipelines \
--config ci/pipelines/dev-pipelines.yml \
--var concourse-url=http://concourse:8080 \
--var readonly_local_user_password=test \
--non-interactive
fly -t local-pay set-pipeline \
--pipeline smoke-tests \
--config ci/pipelines/smoke-tests.yml \
--var concourse-url=http://concourse:8080 \
--var readonly_local_user_password=test \
--non-interactive
fly -t local-pay unpause-pipeline -p dev-pipelines
add-creds:
secrets/local-ssm-add.sh /concourse/pay-deploy/cf-username paas-london/govuk-pay/org-manager-bot/username
secrets/local-ssm-add.sh /concourse/pay-deploy/cf-password paas-london/govuk-pay/org-manager-bot/password
secrets/local-ssm-add.sh /concourse/pay-deploy/gh-username github/readonly-user/username
secrets/local-ssm-add.sh /concourse/pay-deploy/gh-password github/readonly-user/password
secrets/local-ssm-add.sh /concourse/pay-deploy/dh-username docker/readonly-user/username
secrets/local-ssm-add.sh /concourse/pay-deploy/dh-password docker/readonly-user/password
setup: start-concourse add-creds login create-team login-team set-pipelines
destroy:
docker-compose down --volumes --remove-orphans
.PHONY: setup destroy