From 8805074de7ff40cb70b8b8de46747360aebc6e36 Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Fri, 4 Oct 2024 09:08:39 +0200 Subject: [PATCH] Test 2 Signed-off-by: Andreas Heinrich --- .github/workflows/continuous_integration.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index eb70d0f..9ad1057 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -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/get-workflow-version-action@v1.0.0 + 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/deploy-single-docker-image.yml@v1.3.1 - 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