Skip to content

Commit

Permalink
Merge branch 'cfpb:build-artifact' into build-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears authored Sep 13, 2023
2 parents ccb4fd8 + 6d9b7f5 commit 83316ac
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-artifact.yml
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

0 comments on commit 83316ac

Please sign in to comment.