speed build :D
parent
6d174776dc
commit
af0f4bf34d
|
@ -9,44 +9,48 @@ variables:
|
||||||
- &gitea_test_env_image 'gitea/test_env:linux-amd64'
|
- &gitea_test_env_image 'gitea/test_env:linux-amd64'
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
deps-backend:
|
dummy:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
pull: true
|
|
||||||
secrets:
|
|
||||||
- goproxy_override
|
|
||||||
commands:
|
commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- exit 0
|
||||||
- make deps-backend
|
# deps-backend:
|
||||||
|
# image: *golang_image
|
||||||
|
# pull: true
|
||||||
|
# secrets:
|
||||||
|
# - goproxy_override
|
||||||
|
# commands:
|
||||||
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
# - make deps-backend
|
||||||
|
|
||||||
security-check:
|
# security-check:
|
||||||
image: *golang_image
|
# image: *golang_image
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# secrets:
|
||||||
- goproxy_override
|
# - goproxy_override
|
||||||
commands:
|
# commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
- make security-check
|
# - make security-check
|
||||||
|
|
||||||
lint-backend:
|
# lint-backend:
|
||||||
image: *gitea_test_env_image
|
# image: *gitea_test_env_image
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# secrets:
|
||||||
- goproxy_override
|
# - goproxy_override
|
||||||
environment:
|
# environment:
|
||||||
- TAGS=bindata sqlite sqlite_unlock_notify
|
# - TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
- GOSUMDB=sum.golang.org
|
# - GOSUMDB=sum.golang.org
|
||||||
commands:
|
# commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
- make lint-backend
|
# - make lint-backend
|
||||||
|
|
||||||
checks-backend:
|
# checks-backend:
|
||||||
image: *golang_image
|
# image: *golang_image
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# secrets:
|
||||||
- goproxy_override
|
# - goproxy_override
|
||||||
commands:
|
# commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
- make --always-make checks-backend
|
# - make --always-make checks-backend
|
||||||
|
|
||||||
# fetch-tags:
|
# fetch-tags:
|
||||||
# image: docker:git
|
# image: docker:git
|
||||||
|
|
|
@ -13,6 +13,13 @@ variables:
|
||||||
- &xgo_image 'techknowlogick/xgo:go-1.19.x'
|
- &xgo_image 'techknowlogick/xgo:go-1.19.x'
|
||||||
- &buildx_plugin_image 'woodpeckerci/plugin-docker-buildx'
|
- &buildx_plugin_image 'woodpeckerci/plugin-docker-buildx'
|
||||||
- &gpgsign_plugin_image 'plugins/gpgsign:1'
|
- &gpgsign_plugin_image 'plugins/gpgsign:1'
|
||||||
|
# Docker and XGO platforms may vary in name (arm/v6/v7,...), please make sure,
|
||||||
|
# that all platforms listed in docker_platforms are also in make_platforms
|
||||||
|
# for the mapping look at docker/map-binaries.sh
|
||||||
|
#- &make_platforms 'linux/amd64,linux/arm64'
|
||||||
|
#- &docker_platforms 'linux/amd64,linux/arm64'
|
||||||
|
- &make_platforms 'linux/amd64'
|
||||||
|
- &docker_platforms 'linux/amd64'
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
fetch-tags:
|
fetch-tags:
|
||||||
|
@ -62,7 +69,7 @@ pipeline:
|
||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
UPXVERSION: 4.0.1
|
UPXVERSION: 4.0.1
|
||||||
LINUX_ARCHS: 'linux/amd64,linux/arm64'
|
LINUX_ARCHS: *make_platforms
|
||||||
secrets:
|
secrets:
|
||||||
- goproxy_override
|
- goproxy_override
|
||||||
|
|
||||||
|
@ -85,7 +92,7 @@ pipeline:
|
||||||
defaulttagname: main
|
defaulttagname: main
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.ci
|
dockerfile: Dockerfile.ci
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: *docker_platforms
|
||||||
registry:
|
registry:
|
||||||
from_secret: domain
|
from_secret: domain
|
||||||
tag: ${CI_COMMIT_TAG##v}
|
tag: ${CI_COMMIT_TAG##v}
|
||||||
|
|
|
@ -22,8 +22,8 @@ ARG DEFAULTTAGNAME
|
||||||
ARG CI_COMMIT_TAG
|
ARG CI_COMMIT_TAG
|
||||||
ENV DEFAULTTAGNAME=${DEFAULTTAGNAME:-main}
|
ENV DEFAULTTAGNAME=${DEFAULTTAGNAME:-main}
|
||||||
|
|
||||||
COPY ./docker /docker
|
COPY docker /docker/
|
||||||
COPY ./dist /dist
|
COPY dist /dist/
|
||||||
|
|
||||||
RUN /docker/map-binaries.sh /dist/binaries "true" forgejo ${CI_COMMIT_TAG##v} && \
|
RUN /docker/map-binaries.sh /dist/binaries "true" forgejo ${CI_COMMIT_TAG##v} && \
|
||||||
/docker/map-binaries.sh /dist/contrib "false" environment-to-ini ${CI_COMMIT_TAG##v}
|
/docker/map-binaries.sh /dist/contrib "false" environment-to-ini ${CI_COMMIT_TAG##v}
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -790,7 +790,7 @@ release-check: | $(DIST_DIRS)
|
||||||
|
|
||||||
.PHONY: release-compress
|
.PHONY: release-compress
|
||||||
release-compress: | $(DIST_DIRS)
|
release-compress: | $(DIST_DIRS)
|
||||||
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && $(GO) run $(GXZ_PAGAGE) -k -9 $${file}; done;
|
# cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && $(GO) run $(GXZ_PAGAGE) -k -9 $${file}; done;
|
||||||
|
|
||||||
.PHONY: release-sources
|
.PHONY: release-sources
|
||||||
release-sources: | $(DIST_DIRS)
|
release-sources: | $(DIST_DIRS)
|
||||||
|
|
Loading…
Reference in New Issue