Skip to content

Commit 1131d46

Browse files
authored
Merge pull request #16 from commitdev/ZERO138-add-apply-summary
ZERO138 update module and, add summary
2 parents f9ea0e3 + 4ebdf0b commit 1131d46

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@
33
# - CIRCLECI_API_KEY
44
#
55

6-
AWS_ACCESS_KEY_ID := $(shell aws secretsmanager get-secret-value --region ${region} --secret-id=ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .access_key_id)
7-
AWS_SECRET_ACCESS_KEY := $(shell aws secretsmanager get-secret-value --region ${region} --secret-id=ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .secret_key)
86
GITHUB_ORG := $(shell echo ${REPOSITORY} | cut -d "/" -f 2)
97
GITHUB_REPO := $(shell echo ${REPOSITORY} | cut -d "/" -f 3)
108

119
run:
1210
@echo "Set CIRCLECI environment variables\n"
11+
AWS_ACCESS_KEY_ID := $(shell aws secretsmanager get-secret-value --region ${region} --secret-id=ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .access_key_id)
12+
AWS_SECRET_ACCESS_KEY := $(shell aws secretsmanager get-secret-value --region ${region} --secret-id=ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .secret_key)
1313
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_ACCESS_KEY_ID", "value":"${AWS_ACCESS_KEY_ID}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_API_KEY}
1414
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_SECRET_ACCESS_KEY", "value":"${AWS_SECRET_ACCESS_KEY}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_API_KEY}
1515
@echo "\nFollow CIRCLECI project"
1616
curl -X POST https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/follow?circle-token=${CIRCLECI_API_KEY}
1717
@echo "\nDone"
1818

19+
summary:
20+
@echo "zero-deployable-react-frontend:"
21+
@echo "- Repository URL: ${REPOSITORY}"
22+
@echo "- Deployment Pipeline URL: https://app.circleci.com/pipelines/github/${GITHUB_ORG}/${GITHUB_REPO}"
23+
@echo $(shell echo ${ENVIRONMENT} | grep production > /dev/null && echo "- Production Landing Page: ${productionFrontendSubdomain}${productionHostRoot}")
24+
@echo $(shell echo ${ENVIRONMENT} | grep staging > /dev/null && echo "- Staging Landing Page: ${stagingFrontendSubdomain}${stagingHostRoot}")
25+

zero-module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: deployable-frontend
1+
name: zero-deployable-react-frontend
22
description: 'zero module for a deployable single page application based on Create React App and deployed to S3/Cloudfront'
33
author: 'Commit'
44

0 commit comments

Comments
 (0)