mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #64366 from ClickHouse/ci_yml_stage_with_secrets
CI: add secrets to reusable stage wf yml
This commit is contained in:
commit
80d584c40a
2
.github/workflows/master.yml
vendored
2
.github/workflows/master.yml
vendored
@ -136,7 +136,7 @@ jobs:
|
|||||||
|
|
||||||
MarkReleaseReady:
|
MarkReleaseReady:
|
||||||
if: ${{ !failure() && !cancelled() }}
|
if: ${{ !failure() && !cancelled() }}
|
||||||
needs: [RunConfig, Builds_1]
|
needs: [RunConfig, Builds_1, Builds_2]
|
||||||
runs-on: [self-hosted, style-checker-aarch64]
|
runs-on: [self-hosted, style-checker-aarch64]
|
||||||
steps:
|
steps:
|
||||||
- name: Debug
|
- name: Debug
|
||||||
|
5
.github/workflows/reusable_build.yml
vendored
5
.github/workflows/reusable_build.yml
vendored
@ -33,6 +33,10 @@ name: Build ClickHouse
|
|||||||
additional_envs:
|
additional_envs:
|
||||||
description: additional ENV variables to setup the job
|
description: additional ENV variables to setup the job
|
||||||
type: string
|
type: string
|
||||||
|
secrets:
|
||||||
|
secret_envs:
|
||||||
|
description: if given, it's passed to the environments
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
@ -54,6 +58,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cat >> "$GITHUB_ENV" << 'EOF'
|
cat >> "$GITHUB_ENV" << 'EOF'
|
||||||
${{inputs.additional_envs}}
|
${{inputs.additional_envs}}
|
||||||
|
${{secrets.secret_envs}}
|
||||||
DOCKER_TAG<<DOCKER_JSON
|
DOCKER_TAG<<DOCKER_JSON
|
||||||
${{ toJson(fromJson(inputs.data).docker_data.images) }}
|
${{ toJson(fromJson(inputs.data).docker_data.images) }}
|
||||||
DOCKER_JSON
|
DOCKER_JSON
|
||||||
|
6
.github/workflows/reusable_build_stage.yml
vendored
6
.github/workflows/reusable_build_stage.yml
vendored
@ -13,6 +13,10 @@ name: BuildStageWF
|
|||||||
description: ci data
|
description: ci data
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
secrets:
|
||||||
|
secret_envs:
|
||||||
|
description: if given, it's passed to the environments
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
s:
|
s:
|
||||||
@ -30,3 +34,5 @@ jobs:
|
|||||||
# for now let's do I deep checkout for builds
|
# for now let's do I deep checkout for builds
|
||||||
checkout_depth: 0
|
checkout_depth: 0
|
||||||
data: ${{ inputs.data }}
|
data: ${{ inputs.data }}
|
||||||
|
secrets:
|
||||||
|
secret_envs: ${{ secrets.secret_envs }}
|
||||||
|
6
.github/workflows/reusable_test_stage.yml
vendored
6
.github/workflows/reusable_test_stage.yml
vendored
@ -10,6 +10,10 @@ name: StageWF
|
|||||||
description: ci data
|
description: ci data
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
secrets:
|
||||||
|
secret_envs:
|
||||||
|
description: if given, it's passed to the environments
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
s:
|
s:
|
||||||
@ -23,3 +27,5 @@ jobs:
|
|||||||
test_name: ${{ matrix.job_name_and_runner_type.job_name }}
|
test_name: ${{ matrix.job_name_and_runner_type.job_name }}
|
||||||
runner_type: ${{ matrix.job_name_and_runner_type.runner_type }}
|
runner_type: ${{ matrix.job_name_and_runner_type.runner_type }}
|
||||||
data: ${{ inputs.data }}
|
data: ${{ inputs.data }}
|
||||||
|
secrets:
|
||||||
|
secret_envs: ${{ secrets.secret_envs }}
|
||||||
|
Loading…
Reference in New Issue
Block a user