Skip to content

Add environment name for package jobs

Steve Xuereb requested to merge ci/package-environment into master

What does this MR do?

Add environment name for package jobs

Why was this MR needed?

package-deb and package-rpm need to have the GPG_KEY and GPG_PASSPHRASE available to them so it can sign packages. Add an environment so these variables can be scoped to this environment.

What's the best way to test this MR?

  • Make sure that Settings > CI/CD > Variables have GPG_KEY_PATH and GPG_PASSPHRASE_PATH available for the packges/* scope
  • Make sure !2958 (merged) is merged since that makes to file based variables and it would easier to update the variables 1 rather then 2 times.
  • After this is merged verify that the packages are signed.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27963#note_601438675

Edited by Steve Xuereb

Merge request reports