From f78d43853a244513b112fb62d9604ba93736beb9 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 3 Oct 2023 20:51:42 +0200 Subject: [PATCH] [CI] Update for SRP --- .github/actions/build-package-bundle/action.yml | 8 ++++++++ .github/actions/build-repository-bundle/action.yml | 8 ++++++++ .github/actions/publish-bundle/action.yml | 9 ++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-package-bundle/action.yml b/.github/actions/build-package-bundle/action.yml index c4c02aa3f4..f89af66f03 100644 --- a/.github/actions/build-package-bundle/action.yml +++ b/.github/actions/build-package-bundle/action.yml @@ -34,6 +34,12 @@ inputs: project-directory: description: The working directory required: false + SRP_CLIENT_ID: + description: secrets.SRP_CLIENT_ID + required: false + SRP_CLIENT_SECRET: + description: secrets.SRP_CLIENT_SECRET + required: false outputs: bundle-path: description: Location path where bundle was build @@ -58,6 +64,8 @@ runs: IMGPKG_LOCK_TEMPLATE: ${{ inputs.imgpkg-lock-template }} IMGPKG_LOCK_GENERATED_IN: ${{ runner.temp }}/generated/imgpkgin IMGPKG_LOCK_GENERATED_OUT: ${{ runner.temp }}/generated/imgpkgout + SRP_CLIENT_ID: ${{ inputs.SRP_CLIENT_ID }} + SRP_CLIENT_SECRET: ${{ inputs.SRP_CLIENT_SECRET }} shell: bash run: | echo "bundle-path=$PACKAGE_BUNDLE_GENERATED" >> $GITHUB_OUTPUT diff --git a/.github/actions/build-repository-bundle/action.yml b/.github/actions/build-repository-bundle/action.yml index 16e262f49c..bd39072d61 100644 --- a/.github/actions/build-repository-bundle/action.yml +++ b/.github/actions/build-repository-bundle/action.yml @@ -16,6 +16,12 @@ inputs: project-directory: description: The working directory required: false + SRP_CLIENT_ID: + description: secrets.SRP_CLIENT_ID + required: false + SRP_CLIENT_SECRET: + description: secrets.SRP_CLIENT_SECRET + required: false outputs: bundle-path: description: Location path where bundle was build @@ -33,6 +39,8 @@ runs: REPO_BUNDLE_TEMPLATE: ${{ inputs.repo-bundle-template }} REPO_BUNDLE_RENDERED: ${{ runner.temp }}/generated/reporendered REPO_BUNDLE_GENERATED: ${{ runner.temp }}/generated/repobundle + SRP_CLIENT_ID: ${{ inputs.SRP_CLIENT_ID }} + SRP_CLIENT_SECRET: ${{ inputs.SRP_CLIENT_SECRET }} shell: bash run: | echo "bundle-path=$REPO_BUNDLE_GENERATED" >> $GITHUB_OUTPUT diff --git a/.github/actions/publish-bundle/action.yml b/.github/actions/publish-bundle/action.yml index 2b3d28dcf5..3b523069ff 100644 --- a/.github/actions/publish-bundle/action.yml +++ b/.github/actions/publish-bundle/action.yml @@ -10,7 +10,12 @@ inputs: version: description: semver version required: true - + SRP_CLIENT_ID: + description: secrets.SRP_CLIENT_ID + required: false + SRP_CLIENT_SECRET: + description: secrets.SRP_CLIENT_SECRET + required: false runs: using: "composite" steps: @@ -24,6 +29,8 @@ runs: BUNDLE_PATH: ${{ inputs.path }} REPOSITORY: ${{ inputs.repository }} VERSION: ${{ inputs.version }} + SRP_CLIENT_ID: ${{ inputs.SRP_CLIENT_ID }} + SRP_CLIENT_SECRET: ${{ inputs.SRP_CLIENT_SECRET }} shell: bash run: | if [ "$USE_SRP" == "true" ]; then