Skip to content

Commit 2998df0

Browse files
committed
release: v4.17.0a1
1 parent fcb419c commit 2998df0

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

README.md

+8-13
Original file line numberDiff line numberDiff line change
@@ -312,32 +312,27 @@ Then, switch to the project that you want to update:
312312
$ oc project caimira-test
313313
```
314314

315-
Create a new service account in OpenShift to use GitLab container registry:
315+
Create a new service account in OpenShift to access GitLab container registry:
316316

317317
```console
318318
$ oc create serviceaccount gitlabci-deployer
319319
serviceaccount "gitlabci-deployer" created
320+
```
320321

321-
$ oc policy add-role-to-user registry-editor -z gitlabci-deployer
322+
Grant `edit` permission to the service account to run `oc set image` from CI an update the tag to deploy:
323+
```
324+
$ oc policy add-role-to-user edit -z gitlabci-deployer
325+
```
322326

327+
Get the service account token for GitLab:
328+
```
323329
# We will refer to the output of this command as `test-token`
324330
$ oc serviceaccounts get-token gitlabci-deployer
325331
<...test-token...>
326332
```
327333

328334
Add the token to GitLab to allow GitLab to access OpenShift and define/change image stream tags. Go to `Settings` -> `CI / CD` -> `Variables` -> click on `Expand` button and create the variable `OPENSHIFT_CAIMIRA_TEST_DEPLOY_TOKEN`: insert the token `<...test-token...>`.
329335

330-
Then, create the webhook secret to be able to trigger automatic builds from GitLab.
331-
332-
Create and store the secret. Copy the secret above and add it to the GitLab project under `CI /CD` -> `Variables` with the name `OPENSHIFT_CAIMIRA_TEST_WEBHOOK_SECRET`.
333-
334-
```console
335-
$ WEBHOOKSECRET=$(openssl rand -hex 50)
336-
$ oc create secret generic \
337-
--from-literal="WebHookSecretKey=$WEBHOOKSECRET" \
338-
gitlab-caimira-webhook-secret
339-
```
340-
341336
For CI usage, we also suggest creating a service account:
342337

343338
```console

0 commit comments

Comments
 (0)