quick rerun
parent
cc58bf3928
commit
2acacbeb13
|
@ -55,6 +55,8 @@ pipeline:
|
|||
- export PATH=$PATH:$GOPATH/bin
|
||||
- echo "building forgejo"
|
||||
- make CI=true LINUX_ARCHS=$${LINUX_ARCHS} release
|
||||
- pwd
|
||||
- ls -la .
|
||||
environment:
|
||||
TAGS: bindata sqlite sqlite_unlock_notify
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
@ -62,36 +64,36 @@ pipeline:
|
|||
secrets:
|
||||
- goproxy_override
|
||||
|
||||
gpg-sign:
|
||||
image: *gpgsign_plugin_image
|
||||
pull: true
|
||||
settings:
|
||||
detach_sign: true
|
||||
excludes:
|
||||
- "dist/release/*.sha256"
|
||||
files:
|
||||
- "dist/release/*"
|
||||
key:
|
||||
from_secret: releaseteamgpg
|
||||
when:
|
||||
event: tag
|
||||
# gpg-sign:
|
||||
# image: *gpgsign_plugin_image
|
||||
# pull: true
|
||||
# settings:
|
||||
# detach_sign: true
|
||||
# excludes:
|
||||
# - "dist/release/*.sha256"
|
||||
# files:
|
||||
# - "dist/release/*"
|
||||
# key:
|
||||
# from_secret: releaseteamgpg
|
||||
# when:
|
||||
# event: tag
|
||||
|
||||
release:
|
||||
image: *golang_image
|
||||
commands:
|
||||
- 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|/.*||')
|
||||
- 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 /')
|
||||
- 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"
|
||||
- test $${RELEASETYPE+false} || echo "Uploading as Stable"
|
||||
- tea release create $ASSETS --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE}
|
||||
when:
|
||||
event: tag
|
||||
secrets:
|
||||
- releaseteamtoken
|
||||
- releaseteamuser
|
||||
# release:
|
||||
# image: *golang_image
|
||||
# commands:
|
||||
# - 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|/.*||')
|
||||
# - 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 /')
|
||||
# - 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"
|
||||
# - test $${RELEASETYPE+false} || echo "Uploading as Stable"
|
||||
# - tea release create $ASSETS --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE}
|
||||
# when:
|
||||
# event: tag
|
||||
# secrets:
|
||||
# - releaseteamtoken
|
||||
# - releaseteamuser
|
||||
|
||||
build-docker:
|
||||
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}"
|
||||
|
||||
# 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 dist/binaries/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
|
||||
COPY --chmod=755 /source/dist/binaries/forgejo-$TAG-linux-amd64 "${OUT}/linux/amd64/gitea"
|
||||
COPY --chmod=755 /source/dist/binaries/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -790,7 +790,7 @@ release-check: | $(DIST_DIRS)
|
|||
|
||||
.PHONY: release-compress
|
||||
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
|
||||
release-sources: | $(DIST_DIRS)
|
||||
|
|
Loading…
Reference in New Issue