-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add gitlab
role to enable GitLab CI/CD
#29
base: main
Are you sure you want to change the base?
Conversation
9446cfb
to
ca2d6d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks on the readme but otherwise LGTM
Add a new role `gitlab` to enable GitLab CI/CD for use in constructing a CI/CD pipeline that is compatible with `kayobe-automation`. Supports key features and workflows found within the `GitHub` role.
ca2d6d9
to
8cf9f60
Compare
when: always | ||
parallel: | ||
matrix: | ||
- KAYOBE_ENVIRONMENT: [production, test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- KAYOBE_ENVIRONMENT: [production, test] | |
- KAYOBE_ENVIRONMENT: {{ gitlab_kayobe_environments }} |
- !reference [.active_stage_web_rule_no_manual, rules] | ||
stage: runbook-in-place-hypervisor-host-upgrade | ||
resource_group: runbook-in-place-hypervisor-host-upgrade | ||
needs: [disable_compute_services] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs: [disable_compute_services] | |
needs: [a_disable_compute_services] |
rules: | ||
- !reference [.active_stage_web_rule_no_manual, rules] | ||
stage: runbook-overcloud-service-upgrade | ||
resource_group: runbook-overcloud-service-upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource_group: runbook-overcloud-service-upgrade | |
resource_group: runbook-in-place-hypervisor-host-upgrade |
- >- | ||
export BAO_TOKEN=$(curl --silent --request POST | ||
--data '{"role": "gitlab", "jwt": "'"$VAULT_AUTH_TOKEN"'"}' | ||
http://127.0.0.1:8200/v1/auth/jwt/login | jq -r '.auth.client_token') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required on my system (rocky 9, antelope, enterprise GL)
- >- | |
export BAO_TOKEN=$(curl --silent --request POST | |
--data '{"role": "gitlab", "jwt": "'"$VAULT_AUTH_TOKEN"'"}' | |
http://127.0.0.1:8200/v1/auth/jwt/login | jq -r '.auth.client_token') | |
- >- | |
export BAO_TOKEN=$(curl --silent --request POST | |
--data '{"role": "gitlab", "jwt": "'"$VAULT_AUTH_TOKEN"'"}' | |
http://127.0.0.1:8200/v1/auth/jwt/login | jq -r '.auth.client_token') | |
- mkdir -p $HOME/.docker | |
- echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json | |
Add a new role
gitlab
to enable GitLab CI/CD for use in constructing a CI/CD pipeline that is compatible withkayobe-automation
.Supports key features and workflows found within the
GitHub
role.