Skip to content

Commit

Permalink
ci(PPDSC-2471): update DOCKER_TAG to enable deploys from main (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenitsn authored Oct 21, 2022
1 parent fddf70c commit f7e9d5f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,11 @@ jobs:
name: Assume role and build docker images
command: |
if [ << parameters.docker_version >> = release ]; then
export DOCKER_TAG=$(node -p "require('./package.json').version")
export DOCKER_TAG=$(node -p "require('./package.json').version")-release
elif [ << parameters.docker_version >> = prod ]; then
export DOCKER_TAG=$(node -p "require('./package.json').version")-prod-$CIRCLE_SHA1
else
export DOCKER_TAG=$(node -p "require('./package.json').version")-$CIRCLE_SHA1
export DOCKER_TAG=$(node -p "require('./package.json').version")-dev-$CIRCLE_SHA1
fi
export AWS_ACCESS_KEY_ID=<< parameters.aws_access_key_id >>
export AWS_SECRET_ACCESS_KEY=<< parameters.aws_secret_key >>
Expand Down Expand Up @@ -968,7 +970,7 @@ jobs:
# Temp downgrading React. Needed for avoiding Hydration error with React v18 https://github.com/vercel/next.js/discussions/35773
yarn add [email protected]
yarn add [email protected]
yarn add @emotion/react
yarn add @emotion/react
yarn add @emotion/styled
yarn add -D [email protected];
- run:
Expand Down Expand Up @@ -1427,6 +1429,7 @@ workflows:
- build_push_docker_ecr:
name: build_push_docker_ecr_dev
context: ncu-product-platforms-context
docker_version: dev
requires:
- build_storybook
- lint
Expand Down Expand Up @@ -1461,6 +1464,7 @@ workflows:
- build_push_docker_ecr:
name: build_push_docker_ecr_prod
context: ncu-product-platforms-context
docker_version: prod
requires:
- build_docs_prod_link

Expand Down

0 comments on commit f7e9d5f

Please sign in to comment.