Skip to content

Commit 9701c27

Browse files
Mark CI jobs that need secrets with environments
This allows us to restrict access tokens / SSH keys to the particular job instead of allowing all jobs to access the secrets.
1 parent 72eac3b commit 9701c27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ deploy-gh-pages:
250250
needs:
251251
- build:jdk-11
252252
- javadoc
253+
environment: deploy/gh-pages
253254
only:
254255
variables:
255256
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # only on default branch

0 commit comments

Comments
 (0)