Skip to content

Commit 21751bc

Browse files
authored
Update README.md
1 parent 3c9bc37 commit 21751bc

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,26 @@ Import the repository into your Jenkins instance as follows:
163163
4. Fill in your Repository URL, fix the Branch Specifier, save the pipeline
164164
5. You can now run the pipeline manually
165165

166-
### Gitlab CI
167-
TO DO
168-
## Configuring Gitlab CI
166+
## CI Testing
169167

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.
176+
177+
### Gitlab CI, Github Action, Jenkins Configuration
178+
179+
`ci-test` will configure all three CI systems, specifically secrets for your configuration using the following scripts.
180+
When RHTAP auto-configures the CI systems secrets this will no longer be needed. These scripts could also be useful for customers.
181+
See the following scripts
182+
```
183+
hack/ghub-set-vars
184+
hack/glab-set-vars
185+
hack/jenkins-set-secrets
186+
```
173187

174188
[rhtap-docs]: https://docs.redhat.com/en/documentation/red_hat_trusted_application_pipeline

0 commit comments

Comments
 (0)