Skip to content

Commit

Permalink
feat: Add nightly setup (#274)
Browse files Browse the repository at this point in the history
* feat: add nightly setup

* fix: check outputs nightly

* fix: nightly required

* fix: fix workflow nightly

* fix: add nightly target

* ci: fix search nightly targets

* fix: unknown word

* refactor code

* refactor: clean code

---------

Co-authored-by: SotaTek-DuyLe <duy.le@iohk.io>
Co-authored-by: SotaTek-DuyLe <duy.le@iohk.com>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent a80a3b4 commit 40ed4fb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
on:
workflow_call:
inputs:
nightly:
description: When set to true, the workflow will run with the nightly setup
required: false
type: boolean
default: false
aws_ecr_registry:
description: |
The AWS ECR registry that will be used to publish images
Expand Down Expand Up @@ -162,6 +167,20 @@ jobs:
secrets:
earthly_runner_address: ${{ secrets.earthly_runner_address }}
earthly_runner_secret: ${{ secrets.earthly_runner_secret }}
nightly:
uses: ./.github/workflows/run.yml
if: inputs.nightly == true
needs: [build, check, package, test]
with:
aws_role_arn: ${{ inputs.aws_role_arn }}
aws_region: ${{ inputs.aws_region }}
ci_cli_version: ${{ inputs.ci_cli_version }}
earthly_version: ${{ inputs.earthly_version }}
target: nightly nightly-*
privileged: true
secrets:
earthly_runner_address: ${{ secrets.earthly_runner_address }}
earthly_runner_secret: ${{ secrets.earthly_runner_secret }}
release:
uses: ./.github/workflows/release.yml
needs: [build, check, package, test]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ jobs:
single-commit: true
target-folder: ${{ env.DEST_DIR }}
branch: ${{ inputs.publish_branch }}
folder: ${{ steps.build.outputs.artifact }}
folder: ${{ steps.build.outputs.artifact }}
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ jobs:
privileged: ${{ inputs.privileged }}
earthfile: ${{ matrix.earthfile }}
runner_address: ${{ secrets.earthly_runner_address }}
targets: ${{ steps.get_target.outputs.targets }}
targets: ${{ steps.get_target.outputs.targets }}

0 comments on commit 40ed4fb

Please sign in to comment.