Skip to content

Commit 1124de7

Browse files
Mark CI job for image deployments with environment
This allows us to restrict access tokens to this particular job.
1 parent 1a97624 commit 1124de7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ reuse:
242242
- mkdir -p /root/.docker
243243
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
244244
- /kaniko/executor --dockerfile $CI_PROJECT_DIR/$DOCKERFILE --destination $CI_REGISTRY_IMAGE/$IMAGE
245+
environment: deploy/docker
245246
only:
246247
- schedules
247248
- web

0 commit comments

Comments
 (0)