Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jslay-excella committed Jan 27, 2023
0 parents commit aab1316
Show file tree
Hide file tree
Showing 26 changed files with 1,230 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/CHANGELOG.md merge=union
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Short description explaining the high-level reason for the new issue.

## Current behavior


## Expected behavior


## Steps to replicate behavior (include URLs)

1.


## Screenshots



42 changes: 42 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[Short description explaining the high-level reason for the pull request]

## Additions

-

## Removals

-

## Changes

-

## Testing

1.

## Screenshots


## Notes

-

## Todos

-

## Checklist

- [ ] PR has an informative and human-readable title
- [ ] Changes are limited to a single goal (no scope creep)
- [ ] Code can be automatically merged (no conflicts)
- [ ] Passes all existing automated tests
- [ ] Placeholder code is flagged / future todos are captured in comments
- [ ] Reviewers requested with the [Reviewers tool](https://help.github.com/articles/requesting-a-pull-request-review/) :arrow_right:

## Testing checklist


### Other
37 changes: 37 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: helmlint

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
helmlint:
- 'charts/static-site/**.yaml'
- 'charts/static-site/templates/**.tpl'
- name: Set up Helm
if: steps.filter.outputs.helmlint == 'true'
uses: azure/setup-helm@v1
with:
version: v3.9.2

- name: Set up chart-testing
if: steps.filter.outputs.helmlint == 'true'
uses: helm/chart-testing-action@v2.2.1

- name: Run chart-testing (lint)
if: steps.filter.outputs.helmlint == 'true'
run: ct lint --config ct.yaml

- name: Helm Template Test
if: steps.filter.outputs.helmlint == 'true'
run: |
helm template testtemplate charts/static-site
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Helm Chart

on:
workflow_call:

jobs:
publish:
name: Publish Helm Chart
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install Helm
run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

- name: Build Helm Chart
run: helm package ./charts/static-site

- name: GitHub Container Registry Login
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Publish Helm Chart to GitHub Container Registry
run: |
CHART_NAME=$(echo "${GITHUB_REPOSITORY#*/}" | sed -e 's,.*/\(.*\),\1,')
CHART_VERSION=$(grep 'version:' ./charts/$CHART_NAME/Chart.yaml | tail -n1 | awk '{ print $2}')
# Change all uppercase to lowercase
CHART_NAME=$(echo $CHART_NAME | tr '[A-Z]' '[a-z]')
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://ghcr.io/${GITHUB_REPOSITORY%/*}
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Create Release
# Create GitHub release
# Runs on semantic versioned tags only

on:
push:
tags:
- "*.*.*"

jobs:
publish:
name: Publish Helm Chart
uses: ./.github/workflows/publish.yml
release:
runs-on: ubuntu-latest
name: Create GitHub Release
steps:
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
81 changes: 81 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
_site/

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# Vim swap files #
##################
*.swp

# Python #
#################
*.pyc
*.egg-info/
__pycache__/
*.py[cod]
.env
.python-version

# pyenv #
#########
.python-version

# Django #
#################
*.egg-info
.installed.cfg

# Unit test / coverage reports
#################
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Front-End #
#############
node_modules/
bower_components/
.grunt/
src/vendor/
dist/

# IDE #
#######
.idea/
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
All notable changes to this project will be documented in this file.
We follow the [Semantic Versioning 2.0.0](http://semver.org/) format.


## 0.1.0 - 2023-01-26
Initial Release

### Added
- `static-site` Helm Chart with `git`, `wget`, and `s3` capabilities.

### Deprecated
- Nothing.

### Removed
- Nothing.

### Fixed
- Nothing.
115 changes: 115 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# CFPB Open Source Code of Conduct

## Introduction

The [Consumer Financial Protection Bureau](https://www.consumerfinance.gov) (CFPB) is committed to
building a safe, welcoming, harassment-free culture for everyone. We do not merely want an
environment that is free from hostility, we want one that is actively welcoming and inclusive. We
want our team, our workplace culture, and our open source community to reflect and celebrate the
diversity of the people we serve.

This Code of Conduct summarizes federal anti-harassment law and CFPB policy.

## Scope

We expect everyone on the CFPB team, and those contributing to our open source community, to exhibit
these behaviors and abide by applicable federal laws and CFPB policies. In addition, we expect
everyone within CFPB spaces to exhibit these behaviors and refrain from behavior prohibited by
anti-harassment laws and federal policies on harassment. These spaces include:

- CFPB’s physical offices
- CFPB events and meetings
- All of CFPB’s online forums and virtual collaboration tools, including code repositories


## What we strive for

At the CFPB, we strive to create a welcoming and inclusive culture that empowers people to best protect
the financial interests of all consumers. That kind of atmosphere requires an open exchange of ideas
balanced by thoughtful guidelines. Examples of behavior that contributes to a positive environment
for our open source community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community and public

## Unacceptable behavior

To help understand the kinds of behaviors that are illegal or run counter to the culture we seek to
foster, we've listed some actions below that violate federal law and CFPB policy. We've also included
steps to take if you encounter behavior that runs contrary to this policy.

The CFPB Policy Statement on Equal Employment Opportunity and Workplace Harassment forbids
discrimination or harassment based on:

- Race
- Color
- Religion
- Sex (including pregnancy, sexual orientation, transgender status, gender identity or expression, gender non-conformity, or sex stereotyping of any kind)
- National origin
- Disability
- Age (40 years or older)
- Genetic information
- Parental status
- Political affiliation
- Marital status
- Uniformed status
- Membership in a labor organization or union activities
- Prior equal employment opportunity (EEO) or whistleblower activity
- Any other factor unrelated to your merit

The policy also forbids harassing conduct, which includes unwelcome conduct based on any (or a combination of) protected traits or characteristics. Such conduct may take the form of any of the following:

- Offensive jokes, comments, objects, or pictures
- Questions about a person’s identity (e.g., disability status, gender identity, sexual orientation, national origin, etc.)
- Undue attention
- Ridicule or mockery
- Insults or put-downs
- Touching/physical contact
- Slurs or epithets
- Threats or other forms of intimidation
- Physical or sexual assault

## Reporting violations

If you are a CFPB employee, former CFPB employee, or job applicant to CFPB and believe you have been
discriminated against or harassed on the basis of race, color, religion, sex (including pregnancy,
sexual orientation, transgender status, gender identity or expression, gender non-conformity, or sex
stereotyping of any kind), national origin, disability, age (40 years or older), genetic information,
parental status, or retaliated against for prior Equal Employment Opportunity (EEO) activity, contact the CFPB’s Office of Civil Rights.

CFPB_EEO@consumerfinance.gov

(202) 435-9EEO
(855) 233-0362
TTY: (202) 435-9742

Office of Civil Rights
Consumer Financial Protection Bureau
1700 G Street, NW
Washington, D.C. 20552

For help filing a complaint about discrimination on the basis of marital status, political
affiliation, or any other non-merit factor, or for claims of retaliation for [whistleblower activity](https://www.consumerfinance.gov/office-civil-rights/whistleblowers/), contact the [Office of Special Counsel](https://www.osc.gov/) or the [Merit Systems Protection Board](https://www.mspb.gov/).

For help filing a complaint about discrimination on the basis of uniformed status, you may contact
the [Veterans’ Employment and Training Service (VETS)](https://www.dol.gov/vets/) at the Department of Labor, the [Merit Systems Protection Board](https://www.mspb.gov/), or the [Office of Special Counsel](https://osc.gov/), depending on the circumstances.

For help filing a complaint about discrimination on the basis of membership in a labor organization,
you may contact the [Federal Labor Relations Authority](https://flra.gov/) or your union (if applicable).

### Equal employment opportunity policy

For more information about the CFPB’s equal employment opportunity (EEO) policies and procedures visit https://www.consumerfinance.gov/office-civil-rights/eeo-policy-and-reports/

## Credits

The CFPB is greatly appreciative of the multiple sources that we drew from to build this Code of Conduct, including:

- [The Technology Transformation Services (TTS) Code of Conduct](https://18f.gsa.gov/code-of-conduct/)
- [The Contributor Covenant](https://www.contributor-covenant.org/)
- [Code for America Code of Conduct](https://github.com/codeforamerica/codeofconduct)
- [Ada Initiative: HOWTO design a code of conduct for your community](https://adainitiative.org/2014/02/18/howto-design-a-code-of-conduct-for-your-community/)
- [Geek Feminism Code of Conduct](https://geekfeminismdotorg.wordpress.com/about/code-of-conduct/)
Loading

0 comments on commit aab1316

Please sign in to comment.