Add Hasura and dockerify dev env

This commit is contained in:
Charles Bochet
2022-12-28 21:19:12 +01:00
parent 092d486c12
commit aeee5b5fca
8 changed files with 77 additions and 43 deletions

View File

@ -23,12 +23,13 @@ workflows:
jobs:
- tests
- aws-ecr/build-and-push-image:
name: build-image
filters:
branches:
only: main
requires:
- tests
dockerfile: Dockerfile
dockerfile: ./infra/prod/Dockerfile
registry-id: AWS_ACCOUNT_ID
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
@ -38,7 +39,7 @@ workflows:
- aws-ecs/deploy-service-update:
name: deploy-canary
requires:
- aws-ecr/build-and-push-image
- build-image
family: $AWS_ECS_CONTAINER_NAME_CANARY
cluster: $AWS_ECS_CLUSTER
container-image-name-updates: "container=$AWS_ECS_CONTAINER_NAME_CANARY,tag=${CIRCLE_SHA1}"
@ -64,4 +65,15 @@ workflows:
template: basic_success_1
- slack/notify:
event: fail
template: basic_fail_1
template: basic_fail_1
- aws-ecr/build-and-push-image:
name: build-image-latest
requires:
- deploy-prod
dockerfile: ./infra/prod/Dockerfile
registry-id: AWS_ACCOUNT_ID
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
region: $AWS_REGION
repo: $AWS_ECR_REPO
tag: latest