Skip to content

Commit

Permalink
.circleci/config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chomosuke committed Aug 7, 2023
1 parent 64a0f85 commit c7d68f0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2.1
orbs:
aws-ecr: circleci/aws-ecr@8
aws-ecs: circleci/aws-ecs@3
aws-cli: circleci/aws-cli@3
jobs:
build-and-push-image:
machine:
image: ubuntu-2004:2022.04.1
docker_layer_caching: true
resource_class: arm.large
environment:
AWS_ECR_REGISTRY_ID: 441989054812
steps:
- aws-ecr/build-and-push-image:
platform: linux/arm64
public-registry: true
public-registry-alias: m4l5t7p6
region: us-east-1
tag: "${CIRCLE_SHA1}"
repo: porkbellypro

deploy-service-update:
docker:
- image: cimg/python:3.10.4
resource_class: small
environment:
AWS_DEFAULT_REGION: ap-southeast-2
steps:
- aws-cli/setup
- aws-ecs/update-service:
family: porkbellypro
cluster: chomosuke-com
container-image-name-updates:
'container=porkbellypro,tag=${CIRCLE_SHA1}'
enable-circuit-breaker: true
verify-revision-is-deployed: true
poll-interval: 8

workflows:
build-deploy:
jobs:
- build-and-push-image:
filters:
branches:
only: [master]
# - deploy-service-update:
# requires: [build-and-push-image]

# vim: ts=2:sw=2:

0 comments on commit c7d68f0

Please sign in to comment.