-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
config.yml
57 lines (53 loc) · 1.57 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
version: 2.1
orbs:
# Hold off on 8.2.x+ until the fix for https://github.com/CircleCI-Public/aws-ecr-orb/issues/256
# is in a tagged version.
aws-ecr: circleci/[email protected]
aws-ecs: circleci/[email protected]
executors:
outlandish:
machine:
image: ubuntu-2004:edge
workflows:
deploy-staging:
jobs:
- aws-ecr/build-and-push-image:
executor: outlandish
context:
- ecs-deploys
filters:
branches:
only:
- develop
repo: 'staging-wpackagist'
tag: 'staging,staging-${CIRCLE_SHA1}'
extra-build-args: '--build-arg env=stg'
- aws-ecs/deploy-service-update:
context:
- ecs-deploys
requires:
- aws-ecr/build-and-push-image
family: 'ol-ecs-staging-wpackagist'
cluster: 'ol-ecs-staging-shared'
service-name: 'staging-wpackagist'
deploy-production:
jobs:
- aws-ecr/build-and-push-image:
executor: outlandish
context:
- ecs-deploys
filters:
branches:
only:
- main
repo: 'production-wpackagist'
tag: 'production,production-${CIRCLE_SHA1}'
extra-build-args: '--build-arg env=prod'
- aws-ecs/deploy-service-update:
context:
- ecs-deploys
requires:
- aws-ecr/build-and-push-image
family: 'ol-ecs-production-wpackagist'
cluster: 'ol-ecs-production-shared'
service-name: 'production-wpackagist'