-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
config.yml
54 lines (51 loc) · 1.55 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
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/aws-ecr@8.1.3
aws-ecs: circleci/aws-ecs@3.2.0
workflows:
deploy-staging:
jobs:
- aws-ecr/build-and-push-image:
machine:
image: ubuntu-2004:edge
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:
machine:
image: ubuntu-2004:edge
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'