Skip to content

Commit

Permalink
Use zip file for build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomdango committed Jul 14, 2023
1 parent d88f37a commit 7beb660
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cicd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ jobs:
- name: Build Example App
run: make example-build

- name: Zip OpenNext Deployment Assets
run: cd example/.open-next && zip -r ../../open-next.zip . -q

- name: Store Build Artifacts
uses: actions/upload-artifact@v3
with:
name: example-app-opennext-build
path: example/.open-next/
path: open-next.zip

deploy:
name: Deploy Example App
Expand All @@ -148,6 +151,8 @@ jobs:
if: success() && github.ref_name == 'main'
environment:
name: Example Application
url: https://terraform-aws-opennext.tools.engineering.england.nhs.uk/

steps:
- uses: actions/checkout@v3

Expand All @@ -169,8 +174,8 @@ jobs:
with:
name: example-app-opennext-build

- name: Copy Build Artifacts to .open-next folder
run: mv example-app-opennext-build example/.open-next
- name: Unzip Build Artifacts to .open-next folder
run: unzip -q -d example/.open-next example-app-opennext-build/open-next.zip

- name: Run Terraform Init
run: terraform -chdir=example/terraform init
Expand Down

0 comments on commit 7beb660

Please sign in to comment.