Configuring Test Repository - dogtagpki/pki GitHub Wiki
By default the CI will perform the tests using @pki/master repository. Sometimes itβs necessary to perform the tests using a different repository (e.g. to test dependency changes).
In PKI 11.4 or later the repository can be configured by creating a GitHub variable called COPR_REPO to store the repository name. To reset the test repository simply remove the variable.
Prior to PKI 11.4 the repository can be configured by creating a GitHub secret called BASE64_REPO to store the base64-encoded value of the test repository name. To reset the test repository simply remove the secret.
The variable can be configured directly in GitHub project settings or using GitHub CLI.
To display the current test repository using GitHub CLI:
$ gh variable get COPR_REPO -R <owner>/<project>
To test using edewata/pki repository, create an Action variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click New repository variable.
-
Enter
COPR_REPOas the variable name. -
Enter
edewata/pkias the variable value. -
Click Add variable.
-
Alternatively, use this command:
$ gh variable set COPR_REPO -b edewata/pki -R <owner>/<project>
To test using edewata/pki repository, create an Action variable:
-
base-64 encode the repository name with the following command:
$ echo "edewata/pki" | base64 ZWRld2F0YS9wa2kK
-
Go to Settings β Secrets and variables β Actions β Secrets.
-
Click New repository secret.
-
Enter
BASE64_REPOas the secret name. -
Enter the base64-encoded value as the secret value.
-
Click Add secret.
Sometimes old versions of packages in COPR can get selected instead of the test packages, so it is a good idea to delete any non-relevant builds from your test repo before starting.
To reset the test repository, remove the variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click Remove next to
COPR_REPO. -
Click Yes, remove this variable.
-
Alternatively, use the following command:
$ gh variable delete COPR_REPO -R <owner>/<project>