Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build artifact #2

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading