quick rerun
parent
cc58bf3928
commit
2acacbeb13
|
@ -55,6 +55,8 @@ pipeline:
|
||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- echo "building forgejo"
|
- echo "building forgejo"
|
||||||
- make CI=true LINUX_ARCHS=$${LINUX_ARCHS} release
|
- make CI=true LINUX_ARCHS=$${LINUX_ARCHS} release
|
||||||
|
- pwd
|
||||||
|
- ls -la .
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
@ -62,36 +64,36 @@ pipeline:
|
||||||
secrets:
|
secrets:
|
||||||
- goproxy_override
|
- goproxy_override
|
||||||
|
|
||||||
gpg-sign:
|
# gpg-sign:
|
||||||
image: *gpgsign_plugin_image
|
# image: *gpgsign_plugin_image
|
||||||
pull: true
|
# pull: true
|
||||||
settings:
|
# settings:
|
||||||
detach_sign: true
|
# detach_sign: true
|
||||||
excludes:
|
# excludes:
|
||||||
- "dist/release/*.sha256"
|
# - "dist/release/*.sha256"
|
||||||
files:
|
# files:
|
||||||
- "dist/release/*"
|
# - "dist/release/*"
|
||||||
key:
|
# key:
|
||||||
from_secret: releaseteamgpg
|
# from_secret: releaseteamgpg
|
||||||
when:
|
# when:
|
||||||
event: tag
|
# event: tag
|
||||||
|
|
||||||
release:
|
# release:
|
||||||
image: *golang_image
|
# image: *golang_image
|
||||||
commands:
|
# commands:
|
||||||
- curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 > /bin/tea && chmod +x /bin/tea
|
# - curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 > /bin/tea && chmod +x /bin/tea
|
||||||
- REMOTE=$(echo $CI_REPO_LINK | sed -e 's|.*://||' -e 's|/.*||')
|
# - REMOTE=$(echo $CI_REPO_LINK | sed -e 's|.*://||' -e 's|/.*||')
|
||||||
- GITEA_SERVER_URL=$CI_REPO_LINK GITEA_SERVER_TOKEN=$RELEASETEAMTOKEN tea login add --name $RELEASETEAMUSER --url $REMOTE
|
# - GITEA_SERVER_URL=$CI_REPO_LINK GITEA_SERVER_TOKEN=$RELEASETEAMTOKEN tea login add --name $RELEASETEAMUSER --url $REMOTE
|
||||||
- ASSETS=$(ls dist/release/* | sed -e 's/^/-a /')
|
# - ASSETS=$(ls dist/release/* | sed -e 's/^/-a /')
|
||||||
- echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-rc' && export RELEASETYPE="--prerelease" && echo "Uploading as Pre-Release"
|
# - echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-rc' && export RELEASETYPE="--prerelease" && echo "Uploading as Pre-Release"
|
||||||
- echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-test' && export RELEASETYPE="--draft" && echo "Uploading as Draft"
|
# - echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-test' && export RELEASETYPE="--draft" && echo "Uploading as Draft"
|
||||||
- test $${RELEASETYPE+false} || echo "Uploading as Stable"
|
# - test $${RELEASETYPE+false} || echo "Uploading as Stable"
|
||||||
- tea release create $ASSETS --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE}
|
# - tea release create $ASSETS --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE}
|
||||||
when:
|
# when:
|
||||||
event: tag
|
# event: tag
|
||||||
secrets:
|
# secrets:
|
||||||
- releaseteamtoken
|
# - releaseteamtoken
|
||||||
- releaseteamuser
|
# - releaseteamuser
|
||||||
|
|
||||||
build-docker:
|
build-docker:
|
||||||
image: *buildx_plugin_image
|
image: *buildx_plugin_image
|
||||||
|
|
|
@ -23,8 +23,8 @@ RUN test -n "$CI_COMMIT_SHA" || (echo "CI_COMMIT_SHA is required but not set" >&
|
||||||
mkdir -p "${DR}"
|
mkdir -p "${DR}"
|
||||||
|
|
||||||
# Copying the arch specific binaries to the path easily accessible in the next step and rename them to gitea
|
# Copying the arch specific binaries to the path easily accessible in the next step and rename them to gitea
|
||||||
COPY --chmod=755 dist/binaries/forgejo-$TAG-linux-amd64 "${OUT}/linux/amd64/gitea"
|
COPY --chmod=755 /source/dist/binaries/forgejo-$TAG-linux-amd64 "${OUT}/linux/amd64/gitea"
|
||||||
COPY --chmod=755 dist/binaries/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
|
COPY --chmod=755 /source/dist/binaries/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
|
|
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