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
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,12 +163,26 @@ Import the repository into your Jenkins instance as follows:
163
163
4. Fill in your Repository URL, fix the Branch Specifier, save the pipeline
164
164
5. You can now run the pipeline manually
165
165
166
-
### Gitlab CI
167
-
TO DO
168
-
## Configuring Gitlab CI
166
+
## CI Testing
169
167
170
-
### Github Action
171
-
TO DO
172
-
## Configuring Actions
168
+
For ease if testing Jenkins, Gitlab CI and Github Actions, there is a script in the root called `ci-test.sh`. This script will setup and run the build and promotion pipelines in an automated way.
169
+
The script will perform the following
170
+
171
+
1. Reset the build and gitops repositories for each of the CI systems to a base source and application sample, these repos are typically called `tssc-dev-source-{ci-name}` and `tssc-dev-gitops-{ci-name} `. Note github Actions may have a different name due to history. The ci-test.sh script will print the names of the repos used as well as any manual steps on creating repos (gitlab)
172
+
2. Copy the CI pipelines and env setup for the ci tests into the build and gitops repos. The script can be run with RHTAP connected or not installed. If running without an RHTAP (usefull for testing build, sbom, ec) the scripts will detect that there is no cluster and will disable ACS, REKOR and TRUSTIFICATION. If you have a running cluster, this can also be accomplished with `oc logout ` for simpler testing.'
173
+
3. Kick off a build on each CI if manually required.
174
+
4. To get automated pull requests, run `bash hack/wait-for-gitops-update.sh` in a separate window before running the ci-test.sh. It will watch the three gitops repos for updates from build and automatically send a PR to update stage from dev. This can be used to validate a full build/promotion cycle before releasing into the tssc-sample-templates.
175
+
5. You can also run `hack/rhtap-promote --repo repo-url` to trigger a PR for an individual repo.
0 commit comments