-
Notifications
You must be signed in to change notification settings - Fork 114
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 cfgov-helmed
- Loading branch information
Showing
371 changed files
with
3,659 additions
and
53,505 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
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 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
Oops, something went wrong.