forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Centos artifact with builder image and push it to bucket
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Build cf.gov artifact' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifact | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: frontend.yml | ||
commit: ${{ github.sha }} | ||
name: frontend_${{ github.sha }} | ||
|
||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
registry: gcr.io | ||
image: ${{ github.repository }}-builder:latest | ||
options: -v ${{ github.workspace }}:/cfgov | ||
run: ./_build.sh | ||
|
||
- name: Upload arifact | ||
uses: keithweaver/[email protected] | ||
with: | ||
command: cp | ||
source: cfgov_current_build.zip | ||
destination: s3://${{ secrets.BUCKET }}/cfgov_${{ github.sha }}_build.zip | ||
aws_access_key_id: ${{ secrets.BUILD_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.BUILD_SECRET_ACCESS_KEY }} | ||
aws_region: us-east-1 |