mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 06:38:37 -04:00 
			
		
		
		
	Intorduce "config edit-ini" sub command to help maintaining INI config file (#35735)
Ref: #32669. Helps addressing https://gitea.com/gitea/helm-chart/issues/356.
This commit is contained in:
		| @@ -26,20 +26,16 @@ WORKDIR ${GOPATH}/src/code.gitea.io/gitea | ||||
| RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \ | ||||
|  && make clean-all build | ||||
|  | ||||
| # Begin env-to-ini build | ||||
| RUN go build contrib/environment-to-ini/environment-to-ini.go | ||||
|  | ||||
| # Copy local files | ||||
| COPY docker/root /tmp/local | ||||
|  | ||||
| # Set permissions | ||||
| RUN chmod 755 /tmp/local/usr/bin/entrypoint \ | ||||
|               /tmp/local/usr/local/bin/gitea \ | ||||
|               /tmp/local/usr/local/bin/* \ | ||||
|               /tmp/local/etc/s6/gitea/* \ | ||||
|               /tmp/local/etc/s6/openssh/* \ | ||||
|               /tmp/local/etc/s6/.s6-svscan/* \ | ||||
|               /go/src/code.gitea.io/gitea/gitea \ | ||||
|               /go/src/code.gitea.io/gitea/environment-to-ini | ||||
|               /go/src/code.gitea.io/gitea/gitea | ||||
|  | ||||
| FROM docker.io/library/alpine:3.22 | ||||
| LABEL maintainer="maintainers@gitea.io" | ||||
| @@ -82,4 +78,3 @@ CMD ["/usr/bin/s6-svscan", "/etc/s6"] | ||||
|  | ||||
| COPY --from=build-env /tmp/local / | ||||
| COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea | ||||
| COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini | ||||
|   | ||||
		Reference in New Issue
	
	Block a user