Skip to content

Commit a2dca09

Browse files
committed
chore: Migrate CI to forgejo
The development scripts and related Kubernetes resources were updated to reflect the change from Gitea to Forgejo. This involved renaming files, updating variable names, and modifying configuration to use Forgejo's specific paths and image. The core functionality of setting up a Git provider for testing purposes remains the same. Add some comment on policy.go so the e2e can trigger and test this change. Jira: https://issues.redhat.com/browse/SRVKP-9991 AI-assisted-by: Google Gemini Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent 9d60ff7 commit a2dca09

File tree

9 files changed

+217
-139
lines changed

9 files changed

+217
-139
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
TEST_BITBUCKET_CLOUD_E2E_REPOSITORY: cboudjna/pac-e2e-tests
5353
TEST_BITBUCKET_CLOUD_USER: cboudjna
5454
TEST_EL_URL: http://controller.paac-127-0-0-1.nip.io
55-
TEST_GITEA_API_URL: http://localhost:3000
55+
TEST_GITEA_API_URL: http://forgejo.paac-127-0-0-1.nip.io
5656
TEST_GITEA_USERNAME: pac
5757
TEST_GITEA_PASSWORD: pac
5858
TEST_GITEA_REPO_OWNER: pac/pac

hack/dev/kind/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Usage
22

3-
See <https://pipelinesascode.com/docs/dev/> for how to use it.
3+
Use [startpaac](https://github.com/chmouel/startpaac/) which is better for local dev or if you really want to use those script you can go over <https://pipelinesascode.com/docs/dev/> for how to use it.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Gitea in a Pod for PAC
1+
# Forgejo in a Pod for PAC
22

3-
This will :
3+
This will:
44

5-
- spin a gitea deployment into a namespace
6-
- create a ingress to a URL
5+
- spin a Forgejo deployment into a namespace
6+
- create an ingress to a URL
77
- create a repository
88
- create a user/password
99
- create a token for user/password
10-
- create a empty repository
10+
- create an empty repository
1111
- create a hook to go to a hook.pipelinesascode.com URL
1212
- create a deployment with gosmee to forward smee URL to the pipelines as code controller
13-
- create a rpo crd to bind to it.
13+
- create a repo crd to bind to it
1414
- create a secret for the Git provider with the token generated previously
1515

16-
You can easily configure the script using environment variable see the top of the files for the list.
16+
You can easily configure the script using environment variables, see the top of the files for the list.
1717

18-
designed to run on kind.
18+
Designed to run on kind.

0 commit comments

Comments
 (0)