Skip to content

Commit

Permalink
smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
unholy committed Aug 1, 2022
1 parent c591ab3 commit 70609eb
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,39 +410,39 @@ jobs:
workflow_id: ${CIRCLE_WORKFLOW_ID:0:7}


# cloudfront-update:
# docker:
# # Docker image here that supports AWS CLI
# - image: amazon/aws-cli
# steps:
# # Checkout code from git
# - checkout
# - run:
# name: Install dependencies
# command: |
# yum install tar gzip npm nodejs -y
# - run:
# name: Update cloudfront distributionn
# command: |
# # your code here
# export OldWorkflowID=$(aws cloudformation list-exports \
# --query "Exports[?Name==\`WorkflowID\`].Value" \
# --no-paginate --output text)
# echo $OldWorkflowID >> ~/OldWorkflowID.txt
# cat ~/OldWorkflowID.txt
# # Change the initial stack name, as applicable to you
# aws cloudformation deploy \
# --template-file .circleci/files/cloudfront.yml \
# --stack-name InitialStack \
# --parameter-overrides WorkflowID=${CIRCLE_WORKFLOW_ID:0:7} \
# --tags project=udapeople
# echo OldWorkflowID=${OldWorkflowID}
# echo Current Workflow ID: ${CIRCLE_WORKFLOW_ID:0:7}
# # Here's where you will add some code to rollback on failure
# - destroy-environment:
# workflow_id: ${CIRCLE_WORKFLOW_ID:0:7}
# - revert-migrations:
# workflow_id: ${CIRCLE_WORKFLOW_ID:0:7
cloudfront-update:
docker:
# Docker image here that supports AWS CLI
- image: amazon/aws-cli
steps:
# Checkout code from git
- checkout
- run:
name: Install dependencies
command: |
yum install tar gzip npm nodejs -y
- run:
name: Update cloudfront distributionn
command: |
# your code here
export OldWorkflowID=$(aws cloudformation list-exports \
--query "Exports[?Name==\`WorkflowID\`].Value" \
--no-paginate --output text)
echo $OldWorkflowID >> ~/OldWorkflowID.txt
cat ~/OldWorkflowID.txt
# Change the initial stack name, as applicable to you
aws cloudformation deploy \
--template-file .circleci/files/cloudfront.yml \
--stack-name InitialStack \
--parameter-overrides WorkflowID=${CIRCLE_WORKFLOW_ID:0:7} \
--tags project=udapeople
echo OldWorkflowID=${OldWorkflowID}
echo Current Workflow ID: ${CIRCLE_WORKFLOW_ID:0:7}
# Here's where you will add some code to rollback on failure
- destroy-environment:
workflow_id: ${CIRCLE_WORKFLOW_ID:0:7}
- revert-migrations:
workflow_id: ${CIRCLE_WORKFLOW_ID:0:7


# cleanup:
Expand Down

0 comments on commit 70609eb

Please sign in to comment.