-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
69 lines (66 loc) · 2.17 KB
/
config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: 2.1
orbs:
aws-ecr: circleci/[email protected]
aws-ecs: circleci/[email protected]
jobs:
# For now, just lint because tests are e2e and we don't have time to work out running them
# unattended within this sprint.
lint:
docker:
- image: cimg/node:16.7
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- run: npm install --quiet
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}
- run: npm run lint
workflows:
lint:
jobs:
- lint
deploy-staging:
jobs:
- aws-ecr/build-and-push-image:
filters:
branches:
only:
- develop
dockerfile: deploy/Dockerfile
extra-build-args: '--build-arg NEXT_PUBLIC_SANITY_PROJECT_ID=${NEXT_PUBLIC_SANITY_PROJECT_ID}'
registry-id: AWS_REGISTRY_ID
repo: 'staging-ecnmy-dashbd'
region: '${AWS_REGION}'
tag: 'staging,staging-${CIRCLE_SHA1}'
- aws-ecs/deploy-service-update:
requires:
- aws-ecr/build-and-push-image
aws-region: AWS_REGION
family: 'ol-ecs-staging-ecnmy-dashbd'
cluster: 'ol-ecs-staging-shared'
service-name: 'staging-ecnmy-dashbd'
# No Production for now to keep config simple + cost low.
# deploy-production:
# jobs:
# - aws-ecr/build-and-push-image:
# filters:
# branches:
# only:
# - main
# dockerfile: deploy/Dockerfile
# extra-build-args: '--build-arg NEXT_PUBLIC_SANITY_PROJECT_ID=${NEXT_PUBLIC_SANITY_PROJECT_ID}'
# registry-id: AWS_REGISTRY_ID
# repo: 'production-ecnmy-dashbd'
# region: '${AWS_REGION}'
# tag: 'production,production-${CIRCLE_SHA1}'
# - aws-ecs/deploy-service-update:
# requires:
# - aws-ecr/build-and-push-image
# aws-region: AWS_REGION
# family: 'ol-ecs-production-ecnmy-dashbd'
# cluster-name: 'ol-ecs-production-shared'
# service-name: 'production-ecnmy-dashbd'