generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildspec.yml
33 lines (30 loc) · 1013 Bytes
/
buildspec.yml
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
version: 0.2
env:
variables:
DB_PORT: 3306
RACK_ENV: "production"
ENV: ${ENV}
BUNDLE_WITHOUT: "test development"
parameter-store:
DB_USER: "/codebuild/dhcp/$ENV/admin/db/username"
DB_PASS: "/codebuild/dhcp/$ENV/admin/db/password"
DB_HOST: "/codebuild/dhcp/$ENV/admin/db/hostname"
DB_NAME: "/codebuild/dhcp/$ENV/admin/db/name"
REGISTRY_URL: "/codebuild/dhcp/$ENV/ecr/endpoint"
TARGET_AWS_ACCOUNT_ID: "/codebuild/$ENV/account_id"
SECRET_KEY_BASE: "/codebuild/dhcp/admin/rails_master_key"
ROLE_ARN: "/codebuild/pttp-ci-infrastructure-core-pipeline/${ENV}/assume_role"
DHCP_DNS_TERRAFORM_OUTPUTS: "/terraform_dns_dhcp/$ENV/outputs"
DOCKER_USERNAME: "/moj-network-access-control/docker/username"
DOCKER_PASSWORD: "/moj-network-access-control/docker/password"
phases:
install:
commands:
- echo none
build:
commands:
- make authenticate-docker
- make publish
- make migrate
- make bootstrap
- make deploy