You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To prod: Adding cloud-hosted-guide-rest-client-java (#516)
* Updating the run all guides action to run from a separate JSON file
* Adding functionality to run to Prod
* Fixing Prod run
* Adding mp-metrics and mp-openapi guides
* Moving guides.json to the right dir
* Changing guide jwt gitlab repo name
* Adding new guide to mirror.yml
* Adding dir for guied-rest-client-java
Co-authored-by: Jakub F Pomykala <[email protected]>
All of the folders under `https://github.com/OpenLiberty/cloud-hosted-guides/tree/master/instructions/` have a matching Gitlab repository used for SkillsNetwork labs.
3
+
When creating a new cloud-hosted-guides guide some steps must be taken to ensure that future changes will be mirrored.
4
+
5
+
1. Create the Quicklab
6
+
7
+
Create the neccessary Quicklab repository on Gitlab via the SkillsNetwork Author page: https://www.skills.network/become-an-author/
8
+
9
+
2. Add the OpenLiberty Guides group
10
+
11
+
Once your Quicklab repository has been created navigate to it on Gitlab and select the "Members" tab. From here select the "Invite Group" tab and invite the "[OpenLiberty Guides](https://gitlab.com/openliberty-guides)" group as a `maintainer`. If you are not yet a member of the OpenLiberty Guides group then tag @austin0, @jamiecoleman92, or @jakub-pomykala on Github.
12
+
13
+
3. Add the repository names to the `mirror.yml` file
14
+
15
+
In the following section of mirror.yml, under the `repo:` tag, you must add both the Github folder and Gitlab repository (URL) names.
16
+
```
17
+
jobs:
18
+
deploy:
19
+
name: Start Mirror Containers
20
+
runs-on: ubuntu-latest
21
+
strategy:
22
+
matrix: # Uses an array of Json variables to pass the repo names.
23
+
# The names differ between Github and Gitlab so this is necessary.
24
+
# Add new cloud-hosted-guides here to add them to the mirror process.
25
+
# i.e. {"github":"new-lab-github-folder","gitlab":"new-lab-gitlab-url"}
Once the Gitlab repository has been created the owner/maintainer must assign the correct deploy key.
36
+
This can be done by going to `https://gitlab.com/ibm/skills-network/quicklabs/<repo-name>/settings/repository`, scrolling down to the `Deploy Keys` section and enabling the `DEPLOY_KEY_QUICK_LABS` key.
37
+
You must then navigate the the `Enabled deploy keys` tab and select the edit option for the newly added key, from here enable the `Write access allowed` setting.
0 commit comments