Modular CircleCI

This commit is contained in:
Alexandre BRACH
2019-05-02 13:55:54 +02:00
parent 2c42f018bd
commit 0e8c8acc2e

View File

@@ -1,5 +1,8 @@
version: 2
version: 2.1
orbs:
aws-ecr: circleci/aws-ecr@4.0.1
jobs:
build:
working_directory: ~/alchemy-fr/Phraseanet
parallelism: 2
@@ -100,3 +103,31 @@ jobs:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
workflows:
version: 2
oldfashion:
jobs:
- build:
filters:
branches:
only:
- master
newfashion:
jobs:
- aws-ecr/build_and_push_image:
account-url: AWS_ACCOUNT_URL
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
context: AWS
create-repo: true
dockerfile: Dockerfile
#profile-name: myProfileName
region: AWS_DEFAULT_REGION
repo: "${AWS_RESOURCE_NAME_PREFIX}/phraseanet"
tag: "alpha-0.1"
filters:
branches:
only:
- PHRAS-2539