generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andreas Heinrich <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 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 |
---|---|---|
|
@@ -205,6 +205,7 @@ jobs: | |
outputs: | ||
everest_ci_version: ${{ env.EVEREST_CI_VERSION }} | ||
workflow_path: ${{ steps.set_workflow_path.outputs.workflow_path }} | ||
sha_reusable_workflow: ${{ steps.set_sha_reusable_workflow.outputs.sha }} | ||
steps: | ||
- name: Determine workflow_path | ||
id: set_workflow_path | ||
|
@@ -215,11 +216,18 @@ jobs: | |
with open(os.environ["GITHUB_OUTPUT"], "a") as f: | ||
f.write(f"workflow_path={workflow_path}\n") | ||
print(f"Set output workflow_path to {workflow_path}") | ||
- name: Determine SHA of the reusable workflow | ||
id: set_sha_reusable_workflow | ||
uses: canonical/[email protected] | ||
with: | ||
repository-name: everest/everest-ci | ||
file-name: continuous_integration.yml | ||
|
||
build-and-push-build-kit: | ||
name: Build and Push Build Kit | ||
uses: everest/everest-ci/.github/workflows/[email protected] | ||
needs: setup-env | ||
needs: | ||
- setup-env | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -241,7 +249,9 @@ jobs: | |
build: | ||
name: Build, Unit Tests and Install | ||
needs: build-and-push-build-kit | ||
needs: | ||
- setup-env | ||
- build-and-push-build-kit | ||
runs-on: ${{ inputs.runner }} | ||
env: | ||
BUILD_KIT_IMAGE: ${{ needs.build-and-push-build-kit.outputs.one_image_tag_long }} | ||
|
@@ -319,7 +329,7 @@ jobs: | |
id: deploy_coverage_report | ||
if: ${{ steps.run_coverage.outcome == 'success' || steps.run_coverage.outcome == 'failure' }} | ||
# LTODO update tag | ||
uses: ./github-actions/deploy-ci-artifact | ||
uses: everest/everest-ci/github-actions/deploy-ci-artifact@${{ needs.setup-env.outputs.sha }} | ||
with: | ||
target_repo: ${{ inputs.artifact_deploy_target_repo }} | ||
github_token: ${{ secrets.coverage_deploy_token }} | ||
|
@@ -366,6 +376,7 @@ jobs: | |
integration-tests: | ||
name: Integration Tests | ||
needs: | ||
- setup-env | ||
- build | ||
- build-and-push-build-kit | ||
env: | ||
|
@@ -433,6 +444,7 @@ jobs: | |
create_coverage_badge: | ||
name: Create Coverage Badge | ||
needs: | ||
- setup-env | ||
- build | ||
runs-on: ${{ inputs.runner }} | ||
# LTODO uncomment | ||
|