-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ans_wagtail_charts_tweaks
- Loading branch information
Showing
649 changed files
with
5,052 additions
and
54,615 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ on: | |
|
||
jobs: | ||
Build: | ||
if: "! github.event.pull_request.head.repo.fork" | ||
runs-on: ubuntu-latest | ||
env: | ||
ARTIFACT_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | ||
|
@@ -20,25 +19,53 @@ jobs: | |
with: | ||
node-version: '20.x' | ||
|
||
- name: Install Act dependencies (if needed) | ||
if: ${{ env.ACT }} | ||
run: corepack enable | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build frontend | ||
run: yarn run build | ||
|
||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 | ||
- name: Login to GHCR | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
image: ghcr.io/${{ github.repository }}-builder:main | ||
options: -v ${{ github.workspace }}:/cfgov | ||
run: | | ||
source scl_source enable rh-python38 | ||
./call_create.sh | ||
- name: Upload arifact | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull image to build artifact | ||
run: docker pull ghcr.io/cfpb/cfgov-artifact-builder:latest | ||
|
||
- name: Build artifact | ||
run: | | ||
docker run \ | ||
-v `pwd`:/cfgov \ | ||
ghcr.io/cfpb/cfgov-artifact-builder:latest | ||
- name: Pull image to test artifact | ||
run: docker pull ghcr.io/cfpb/cfgov-artifact-tester:latest | ||
|
||
- name: Run built artifact as a Docker container | ||
run: | | ||
docker run \ | ||
--name cfgov \ | ||
-d \ | ||
-v `pwd`:/cfgov:ro \ | ||
-p 8000:80 \ | ||
--env-file docker/centos7/test.env \ | ||
ghcr.io/cfpb/cfgov-artifact-tester:latest | ||
- name: Wait for artifact container to be ready | ||
run: | | ||
timeout 180s bash -c \ | ||
'until [ "$(docker inspect -f {{.State.Health.Status}} cfgov)" == "healthy" ]; do sleep 2; done' | ||
# Don't upload artifacts to S3 if PR is against a fork. | ||
- name: Upload artifact to S3 | ||
if: "! github.event.pull_request.head.repo.fork" | ||
uses: keithweaver/[email protected] | ||
with: | ||
command: cp | ||
|
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
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
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,21 @@ | ||
name: Helm testing | ||
on: | ||
pull_request: | ||
paths: | ||
- helm/** | ||
|
||
jobs: | ||
helm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: Install Helm dependencies | ||
run: helm dependency update helm | ||
|
||
- name: Lint Helm chart | ||
run: helm lint --strict -f helm/values.local.yaml helm |
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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ cfgov/retirement_api/data/ | |
cfgov/static_built/ | ||
**/fixtures/ | ||
collectstatic/ | ||
helm/ | ||
|
||
# Ignore all HTML files: | ||
*.html |
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
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
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
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,24 @@ | ||
FROM httpd:2.4-alpine | ||
|
||
# Copy the Apache configuration file | ||
COPY ./conf /usr/local/apache2/conf | ||
COPY ./conf.d /usr/local/apache2/conf.d | ||
COPY ./conf.modules.d /usr/local/apache2/conf.modules.d | ||
|
||
# Add Apache ENV variables | ||
ENV APACHE_PORT="80" | ||
ENV APACHE_USER="www-data" | ||
ENV APACHE_GROUP="www-data" | ||
ENV APACHE_SERVER_ROOT="/usr/local/apache2/" | ||
ENV APACHE_UPLOADS_F_ALIAS="/src/consumerfinance.gov/cfgov/f/" | ||
ENV STATIC_PATH="/tmp" | ||
ENV ERROR_LOG="/proc/self/fd/2" | ||
ENV ACCESS_LOG="/proc/self/fd/1" | ||
ENV LIMIT_REQUEST_BODY="0" | ||
ENV APACHE_STATUS_ALLOW_FROM="127.0.0.1" | ||
ENV APACHE_PROCESS_COUNT="4" | ||
ENV CFGOV_APPLICATION_HOST="localhost" | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["httpd-foreground"] |
Oops, something went wrong.