Skip to content

Commit

Permalink
Merge pull request #25 from Hacking-the-Cloud/pin_gitlab_version
Browse files Browse the repository at this point in the history
Pinned GitLab version
  • Loading branch information
Frichetten committed Feb 28, 2024
2 parents 940c167 + df786de commit 95bc4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/cicdont/target_service_user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ admin_token=$(openssl rand -hex 20)
apt update
apt-get install -y curl openssh-server ca-certificates tzdata perl docker.io jq awscli
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | bash
EXTERNAL_URL="http://$host_ip" GITLAB_ROOT_PASSWORD="${gitlab_root_password}" apt-get install gitlab-ee
EXTERNAL_URL="http://$host_ip" GITLAB_ROOT_PASSWORD="${gitlab_root_password}" apt-get install gitlab-ee=16.9.1-ee.0
gitlab-rails runner 'ApplicationSetting.last.update(signup_enabled: false, import_sources: ["git"])'
gitlab-rails runner "token = User.admins.last.personal_access_tokens.create(scopes: [:api], name: 'automation', expires_at: 365.days.from_now); token.set_token('$admin_token'); token.save!"
sleep 2
Expand Down

0 comments on commit 95bc4a6

Please sign in to comment.