Open Innei opened 4 months ago
That file provides the plugins available to Gitness pipelines. You could host that file in a different location with the GITNESS_CI_PLUGINS_ZIP_URL
variable, see https://github.com/harness/gitness/blob/v3.0.0-beta.6/types/config.go#L138-L141
@Innei just following up on this. Did the environment variable mentioned by @jimsheldon above solve your problem?
Sorry, I haven't related this information lately, so I didn't follow up in time, I'll try to
Maybe not work, I add env in docker-compose file like this.
name: gitness
services:
gitness:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./gitness:/data
container_name: gitness
restart: always
image: harness/gitness:latest
environment:
- GITNESS_HTTP_PORT=80
- GITNESS_URL_BASE=http://git.innei.in
- GITNESS_USER_SIGNUP_ENABLED=false
- GITNESS_CI_PLUGINS_ZIP_URL=https://ghproxy.org/https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip # Add this
But still got an error, download file from github
{"level":"error","error":"could not download remote zip: could not get zip from url: Get \"https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip\": unexpected EOF","time":"2024-05-04T11:10:15.12901532Z","message":"could not populate plugins"}
Hello,
I can't start service in an offline environment.
May be this related issue is outdated. https://github.com/harness/gitness/issues/1572