-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds about page; integrates USWDS; adds RSS icon (#433)
* Add blog notification improvements (#424) * 419: Updates to latest Gatsby v2 * 419: Updates to Gatsby v3 * Add RSS icon PNG and added to footer social icons * 419: Updates docker image * Update code to import RSS icon * 419: Cleans up config, scripts, manifests * Added home link to blog post template page * 419: Adds requires to config * 419: Fixes Gatsby node config and package-lock * Center Home button * 419: Updates app name * Fixes home link styles * 424: deps cleanup; fixes home link --------- Co-authored-by: Jeff Schwartz <[email protected]> * 425: Updates Gatsby and deps (#427) * Updates to Gatsby 5 (#431) * 426: Upgrades Gatsby to v5. * 426: Updates graphql queries * 426: Fixes missing author bio * 426: Handle push error * 426: Adds disk_quota * 426: Fixes partytown issue * 426: Updates outdated packages * Integrates USWDS (#432) * 401: Adds about page and footer link. * update about page * 412: Adds author mailto * update typo * 412: Shortens contact margin. * 423: Initial revision with uswds * 423: Initial layout changes * 423: final touches on blog-post layout * 423: Adjusts spacing * 423: Updates footer * 423: Updates blog list * 423: Adds gulp compile * 423: Fixes gulp compile * 423: Goes back to updateUswds * 423: Fixes build issues with banner * 423: Fixes banner * 423: Fixes pagination button issue * 423: Addresses minor issues * 423: Applies USWDS to about page --------- Co-authored-by: Christine Thomas <[email protected]> --------- Co-authored-by: Alexandra C McNally <[email protected]> Co-authored-by: Christine Thomas <[email protected]>
- Loading branch information
1 parent
281861f
commit 62b44c5
Showing
29 changed files
with
20,346 additions
and
18,598 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,73 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/node@5.2.0 | ||
node: circleci/node@6.3.0 | ||
|
||
jobs: | ||
preview: | ||
executors: | ||
blog-executor: | ||
docker: | ||
- image: cimg/base:stable | ||
resource_class: xlarge | ||
environment: | ||
TEST_REPORTS: /tmp/test-reports | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '12.13.0' | ||
- node/install-packages | ||
- run: | ||
name: Build gatsby | ||
command: npm run build | ||
- run: | ||
name: deploy preview to cloud.gov | ||
command: | | ||
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - | ||
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list | ||
sudo apt-get update | ||
sudo apt-get install cf8-cli | ||
cf api https://api.fr.cloud.gov | ||
cf auth "$CF_USERNAME" "$CF_PASSWORD" | ||
cf target -o doi-onrr -s dev -v | ||
cf push dev-blog-nrrd -f ./manifest.yml | ||
dev: | ||
docker: | ||
- image: cimg/base:stable | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '12.13.0' | ||
- node/install-packages | ||
- run: | ||
name: Build gatsby | ||
command: npm run build | ||
- run: | ||
name: deploy to cloud.gov | ||
command: | | ||
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - | ||
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list | ||
sudo apt-get update | ||
sudo apt-get install cf8-cli | ||
cf api https://api.fr.cloud.gov | ||
cf auth "$CF_USERNAME" "$CF_PASSWORD" | ||
cf target -o doi-onrr -s dev -v | ||
cf push dev-blog-nrrd -f ./manifest.yml | ||
- run: | ||
name: clean up | ||
command: | | ||
which cf | ||
bash ./.circleci/cleanup.sh | ||
deploy: | ||
docker: | ||
- image: cimg/base:stable | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '12.13.0' | ||
- node/install-packages | ||
- run: | ||
name: Build gatsby | ||
command: npm run build | ||
- run: | ||
name: deploy preview to cloud.gov | ||
command: | | ||
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - | ||
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list | ||
sudo apt-get update | ||
sudo apt-get install cf8-cli | ||
cf api https://api.fr.cloud.gov | ||
cf auth "$CF_USERNAME" "$CF_PASSWORD" | ||
cf target -o doi-onrr -s prod | ||
cf push blog-nrrd -f ./manifest.yml | ||
|
||
workflows: | ||
preview: | ||
deploy-prod-workflow: | ||
jobs: | ||
- preview: | ||
context: | ||
- org-global | ||
- DEV | ||
- build: | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
- dev | ||
|
||
deploy: | ||
jobs: | ||
only: master | ||
- deploy: | ||
requires: | ||
- build | ||
context: | ||
- org-global | ||
- PROD | ||
filters: | ||
branches: | ||
only: master | ||
|
||
dev: | ||
deploy-dev-workflow: | ||
jobs: | ||
- dev: | ||
- build: | ||
filters: | ||
branches: | ||
ignore: master | ||
- deploy: | ||
requires: | ||
- build | ||
context: | ||
- org-global | ||
- DEV | ||
filters: | ||
branches: | ||
only: dev | ||
ignore: master | ||
|
||
jobs: | ||
build: | ||
executor: blog-executor | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '18.20.4' | ||
- node/install-packages | ||
- run: | ||
name: Build gatsby | ||
command: npm run build | ||
- persist_to_workspace: | ||
root: ~/project | ||
paths: | ||
- . | ||
deploy: | ||
executor: blog-executor | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
- run: | ||
name: Rename partytown directory | ||
command: | | ||
mv ~/project/public/~partytown ~/project/public/_partytown | ||
- run: | ||
name: Deploy to cloud.gov | ||
command: | | ||
chmod +x ~/project/.circleci/scripts/deploy.sh | ||
~/project/.circleci/scripts/deploy.sh --branch "$CIRCLE_BRANCH" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
TEMP=$(getopt -o '' --long branch: -- "$@") | ||
if [ $? != 0 ]; then | ||
echo "Terminating..." >&2 | ||
exit 1 | ||
fi | ||
|
||
eval set -- "$TEMP" | ||
|
||
branch="" | ||
manifest="" | ||
space="" | ||
|
||
while true; do | ||
case "$1" in | ||
--branch) | ||
branch=$2; shift 2 ;; | ||
--) | ||
shift; break ;; | ||
*) | ||
echo "Internal error!" >&2 | ||
exit 1 ;; | ||
esac | ||
done | ||
|
||
if [ -z "$branch" ]; then | ||
echo "Error: --branch is required." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ "$branch" == "master" ]; then | ||
space="prod" | ||
manifest="manifest.master.yml" | ||
else | ||
space="dev" | ||
manifest="manifest.dev.yml" | ||
fi | ||
|
||
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - | ||
|
||
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list | ||
|
||
sudo apt-get update | ||
|
||
sudo apt-get install cf8-cli | ||
|
||
cf login -u "$CF_USERNAME" -p "$CF_PASSWORD" -a api.fr.cloud.gov -o "$CF_ORG" -s "$space" | ||
|
||
cf push --strategy=rolling -f "$manifest" | ||
|
||
exit_code=$? | ||
|
||
if [ $exit_code -ne 0 ]; then | ||
echo "Error: cf push failed with exit code $exit_code" | ||
exit $exit_code | ||
else | ||
echo "manifest $manifest successfully deployed." | ||
exit 0 | ||
fi |
Oops, something went wrong.