Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Semantic Release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Semantic Release
Commits
712331d4
Commit
712331d4
authored
2 months ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
fix: unset vault variables for semrel
Fixes #54
parent
5bb40fc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-semrel.yml
+7
-0
7 additions, 0 deletions
templates/gitlab-ci-semrel.yml
with
7 additions
and
0 deletions
templates/gitlab-ci-semrel.yml
+
7
−
0
View file @
712331d4
...
...
@@ -790,6 +790,12 @@ stages:
log_info "Commit signing setup complete."
}
function clear_vault_env() {
# unset service container env when Vault variant is enabled (SemRel censors them all due to 'SECRET' in the name)
# shellcheck disable=SC2046
unset $(env | awk -F '=' '/^VAULT_SECRETS_PROVIDER_/{print $1}' | xargs)
}
unscope_variables
eval_all_secrets
...
...
@@ -809,6 +815,7 @@ stages:
-
cd "${SEMREL_CONFIG_DIR}"
-
prepare_semantic_release
-
install_semantic_release_plugins
-
clear_vault_env
variables
:
# download cache
XDG_CACHE_HOME
:
"
$CI_PROJECT_DIR/.cache"
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
90c70487
·
1 month ago
mentioned in commit
90c70487
mentioned in commit 90c70487eba4e234195fa5efa917bd77af46c302
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment