Skip to content

Commit a06fe55

Browse files
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]>
1 parent 2256b7f commit a06fe55

File tree

5 files changed

+55
-11
lines changed

5 files changed

+55
-11
lines changed

.github/workflows/mirror.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
# Add new cloud-hosted-guides here to add them to the mirror process.
1616
# i.e. {"github":"new-lab-github-url","gitlab":"new-lab-gitlab-url"}
1717
repo:
18+
- {"github":"cloud-hosted-draft-guide-contract-testing","gitlab":"cloud-hosted-guide-contract-testing"}
19+
- {"github":"cloud-hosted-draft-guide-development","gitlab":"cloud-hosted-draft-guide-development"}
1820
- {"github":"cloud-hosted-guide-cdi-intro","gitlab":"cloud-hosted-guide-cdi-intro"}
1921
- {"github":"cloud-hosted-guide-containerize","gitlab":"cloud-hosted-guide-containerize"}
2022
- {"github":"cloud-hosted-guide-docker","gitlab":"cloud-hosted-guide-docker"}
@@ -24,22 +26,22 @@ jobs:
2426
- {"github":"cloud-hosted-guide-microprofile-fallback","gitlab":"cloud-hosted-guide-microprofile-fallback"}
2527
- {"github":"cloud-hosted-guide-microprofile-health","gitlab":"cloud-hosted-guide-microprofile-health"}
2628
- {"github":"cloud-hosted-guide-microprofile-jwt","gitlab":"cloud-hosted-guide-microprofile-jwt"}
29+
- {"github":"cloud-hosted-guide-microprofile-metrics","gitlab":"cloud-hosted-guide-microprofile-metrics"}
2730
- {"github":"cloud-hosted-guide-microprofile-openapi","gitlab":"cloud-hosted-guide-microprofile-openapi"}
28-
- {"github":"cloud-hosted-guide-microprofile-opentracing","gitlab":"cloud-hosted-guide-microprofile-opentracing"}
2931
- {"github":"cloud-hosted-guide-microprofile-opentracing-jaeger","gitlab":"cloud-hosted-guide-microprofile-opentracing-jaeger"}
30-
- {"github":"cloud-hosted-guide-microprofile-metrics","gitlab":"cloud-hosted-guide-microprofile-metrics"}
32+
- {"github":"cloud-hosted-guide-microprofile-opentracing","gitlab":"cloud-hosted-guide-microprofile-opentracing"}
3133
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging-acknowledgment","gitlab":"cloud-hosted-guide-microprofile-reactive-messaging-acknowledgment"}
3234
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging-rest-integration","gitlab":"cloud-hosted-guide-microprofile-reactive-messaging-rest-integration"}
33-
- {"github":"cloud-hosted-guide-microprofile-rest-client","gitlab":"cloud-hosted-guide-microprofile-rest-client"}
3435
- {"github":"cloud-hosted-guide-microprofile-rest-client-async","gitlab":"cloud-hosted-guide-microprofile-rest-client-async"}
36+
- {"github":"cloud-hosted-guide-microprofile-rest-client","gitlab":"cloud-hosted-guide-microprofile-rest-client"}
3537
- {"github":"cloud-hosted-guide-microshed-testing","gitlab":"cloud-hosted-guide-microshed-testing"}
36-
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging","gitlab":"cloud-hosted-guide-reactive-messaging"}
3738
- {"github":"cloud-hosted-guide-reactive-messaging-openshift","gitlab":"cloud-hosted-guide-reactive-messaging-openshift"}
39+
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging","gitlab":"cloud-hosted-guide-reactive-messaging"}
3840
- {"github":"cloud-hosted-guide-reactive-rest-client","gitlab":"cloud-hosted-guide-reactive-rest-client"}
3941
- {"github":"cloud-hosted-guide-reactive-service-testing","gitlab":"cloud-hosted-guide-reactive-service-testing"}
42+
- {"github":"cloud-hosted-guide-rest-client-java","gitlab":"cloud-hosted-guide-rest-client-java"}
4043
- {"github":"cloud-hosted-guide-rest-intro","gitlab":"cloud-hosted-guide-rest-intro"}
4144
- {"github":"cloud-hosted-guide-rest-openshift","gitlab":"cloud-hosted-guide-rest-openshift"}
42-
- {"github":"cloud-hosted-draft-guide-development","gitlab":"cloud-hosted-draft-guide-development"}
4345

4446
steps:
4547

.github/workflows/stagingMirror.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
# Add new cloud-hosted-guides here to add them to the mirror process.
1616
# i.e. {"github":"new-lab-github-url","gitlab":"new-lab-gitlab-url"}
1717
repo:
18+
- {"github":"cloud-hosted-draft-guide-contract-testing","gitlab":"cloud-hosted-guide-contract-testing"}
19+
- {"github":"cloud-hosted-draft-guide-development","gitlab":"cloud-hosted-draft-guide-development"}
1820
- {"github":"cloud-hosted-guide-cdi-intro","gitlab":"cloud-hosted-guide-cdi-intro"}
1921
- {"github":"cloud-hosted-guide-containerize","gitlab":"cloud-hosted-guide-containerize"}
2022
- {"github":"cloud-hosted-guide-docker","gitlab":"cloud-hosted-guide-docker"}
@@ -24,23 +26,22 @@ jobs:
2426
- {"github":"cloud-hosted-guide-microprofile-fallback","gitlab":"cloud-hosted-guide-microprofile-fallback"}
2527
- {"github":"cloud-hosted-guide-microprofile-health","gitlab":"cloud-hosted-guide-microprofile-health"}
2628
- {"github":"cloud-hosted-guide-microprofile-jwt","gitlab":"cloud-hosted-guide-microprofile-jwt"}
29+
- {"github":"cloud-hosted-guide-microprofile-metrics","gitlab":"cloud-hosted-guide-microprofile-metrics"}
2730
- {"github":"cloud-hosted-guide-microprofile-openapi","gitlab":"cloud-hosted-guide-microprofile-openapi"}
28-
- {"github":"cloud-hosted-guide-microprofile-opentracing","gitlab":"cloud-hosted-guide-microprofile-opentracing"}
2931
- {"github":"cloud-hosted-guide-microprofile-opentracing-jaeger","gitlab":"cloud-hosted-guide-microprofile-opentracing-jaeger"}
30-
- {"github":"cloud-hosted-guide-microprofile-metrics","gitlab":"cloud-hosted-guide-microprofile-metrics"}
32+
- {"github":"cloud-hosted-guide-microprofile-opentracing","gitlab":"cloud-hosted-guide-microprofile-opentracing"}
3133
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging-acknowledgment","gitlab":"cloud-hosted-guide-microprofile-reactive-messaging-acknowledgment"}
3234
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging-rest-integration","gitlab":"cloud-hosted-guide-microprofile-reactive-messaging-rest-integration"}
33-
- {"github":"cloud-hosted-guide-microprofile-rest-client","gitlab":"cloud-hosted-guide-microprofile-rest-client"}
3435
- {"github":"cloud-hosted-guide-microprofile-rest-client-async","gitlab":"cloud-hosted-guide-microprofile-rest-client-async"}
36+
- {"github":"cloud-hosted-guide-microprofile-rest-client","gitlab":"cloud-hosted-guide-microprofile-rest-client"}
3537
- {"github":"cloud-hosted-guide-microshed-testing","gitlab":"cloud-hosted-guide-microshed-testing"}
36-
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging","gitlab":"cloud-hosted-guide-reactive-messaging"}
3738
- {"github":"cloud-hosted-guide-reactive-messaging-openshift","gitlab":"cloud-hosted-guide-reactive-messaging-openshift"}
39+
- {"github":"cloud-hosted-guide-microprofile-reactive-messaging","gitlab":"cloud-hosted-guide-reactive-messaging"}
3840
- {"github":"cloud-hosted-guide-reactive-rest-client","gitlab":"cloud-hosted-guide-reactive-rest-client"}
3941
- {"github":"cloud-hosted-guide-reactive-service-testing","gitlab":"cloud-hosted-guide-reactive-service-testing"}
42+
- {"github":"cloud-hosted-guide-rest-client-java","gitlab":"cloud-hosted-guide-rest-client-java"}
4043
- {"github":"cloud-hosted-guide-rest-intro","gitlab":"cloud-hosted-guide-rest-intro"}
4144
- {"github":"cloud-hosted-guide-rest-openshift","gitlab":"cloud-hosted-guide-rest-openshift"}
42-
- {"github":"cloud-hosted-draft-guide-contract-testing","gitlab":"cloud-hosted-guide-contract-testing"}
43-
- {"github":"cloud-hosted-draft-guide-development","gitlab":"cloud-hosted-draft-guide-development"}
4445

4546
steps:
4647

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include:
2+
- project: "ibm/skills-network/courses/shared-ci"
3+
ref: master
4+
file: "shared-ci.yml"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Mirror Instructions
2+
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"}
26+
repo:
27+
- {"github":"develop-microservices-docker","gitlab":"using-docker-to-develop-java-microservices"}
28+
- {"github":"guide-cdi-intro","gitlab":"injecting-dependencies-into-a-java-microservices"}
29+
...
30+
```
31+
32+
33+
4. Apply Gitlab deploy key
34+
35+
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.

instructions/cloud-hosted-guide-rest-client-java/instructions.md

Whitespace-only changes.

0 commit comments

Comments
 (0)