Skip to content

Commit 84e6b6a

Browse files
authored
Merge pull request #1019 from Shocktrooper/ContainerRegistryEnable
Separating setup script from personal access token code
2 parents 6b2205b + 34449a9 commit 84e6b6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/healthcheck-and-setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ test -f $done || {
2828
printf 'terraform_token.save!;'
2929
) | gitlab-rails console
3030

31+
echo "Enabling the container registry for the instance so that Personal Access Tokens can be created with the read_registry and write_registry scopes"
32+
(
33+
printf 'Gitlab.config.registry["enabled"] = true'
34+
) | gitlab-rails console
35+
3136
# 2020-09-07: Currently Gitlab (version 13.3.6 ) doesn't allow in admin API
3237
# ability to set a group as instance level templates.
3338
# To test resource_gitlab_project_test template features we add

0 commit comments

Comments
 (0)