-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): setup license with mask (#16061)
* chore(ci): mask license * z * z * z * z * z * z
- Loading branch information
Showing
4 changed files
with
60 additions
and
96 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Setup License" | ||
description: "Setup Databend Enterprise License" | ||
inputs: | ||
runner_provider: | ||
description: "Self-hosted runner provider, aws or gcp" | ||
required: true | ||
default: "aws" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get License from S3 | ||
if: inputs.runner_provider == 'aws' | ||
shell: bash | ||
run: | | ||
aws s3 cp s3://databend-ci/misc/license.key license.key | ||
aws s3 cp s3://databend-ci/misc/license.json license.json | ||
- name: Get License from GCS | ||
if: inputs.runner_provider == 'gcp' | ||
shell: bash | ||
run: | | ||
gcloud storage cp gs://databend-ci/misc/license.key license.key | ||
gcloud storage cp gs://databend-ci/misc/license.json license.json | ||
- name: Output License | ||
shell: bash | ||
run: | | ||
license=$(cat license.key) | ||
rm license.key | ||
echo "::add-mask::${license}" | ||
echo "QUERY_DATABEND_ENTERPRISE_LICENSE=${license}" >> $GITHUB_ENV | ||
cat license.json |
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
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
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