[CI] just the release

This commit is contained in:
Loïc Dachary 2022-12-16 02:50:36 +01:00
parent 37f76b9fb3
commit d28200f17c
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2
4 changed files with 0 additions and 158 deletions

View file

@ -1,35 +0,0 @@
platform: linux/amd64
branches:
exclude: [ main, release/*, soft-fork/*/*, soft-fork/*/*/*, doc-* ]
workspace:
base: /go
path: src/codeberg/gitea
pipeline:
deps-backend:
image: golang:1.19
pull: true
commands:
- make deps-backend
security-check:
image: golang:1.19
pull: true
commands:
- make security-check
lint-backend:
image: gitea/test_env:linux-amd64
pull: true
environment:
- TAGS=bindata sqlite sqlite_unlock_notify
- GOSUMDB=sum.golang.org
commands:
- make lint-backend
checks-backend:
image: golang:1.19
commands:
- make --always-make checks-backend

View file

@ -1,54 +0,0 @@
platform: linux/amd64
branches:
exclude: [ main, release/*, soft-fork/*/*, soft-fork/*/*/*, doc-* ]
depends_on:
- testing-amd64
pipeline:
fetch-tags:
image: docker:git
pull: true
commands:
- git config --add safe.directory '*'
- git fetch --tags --force
publish-integration:
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
platforms: linux/amd64
registry:
from_secret: domain
tags: ${CI_COMMIT_TAG##v}
repo: codeberg.org/forgejo-integration/forgejo
password:
from_secret: releaseteamtoken
username:
from_secret: releaseteamuser
when:
event: tag
publish:
image: woodpeckerci/plugin-docker-buildx
commands:
- apk --update --no-cache add coredns
- ( echo ".:53 {" ; echo " forward . /etc/resolv.conf"; echo "}" ) > /etc/coredns/Corefile
- coredns -conf /etc/coredns/Corefile &
- /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock --dns 172.17.0.3 &
- for i in $$(seq 60) ; do DOCKER_HOST=unix:///var/run/docker.sock docker version && break ; sleep 1 ; done
- docker pull codeberg.org/forgejo-integration/forgejo':'${CI_COMMIT_TAG##v}
- docker login -p "$RELEASETEAMTOKEN" -u "$RELEASETEAMUSER" $DOMAIN
- docker tag codeberg.org/forgejo-integration/forgejo':'${CI_COMMIT_TAG##v} ${CI_REPO_LINK##https://}':'${CI_COMMIT_TAG##v}
- docker push ${CI_REPO_LINK##https://}':'${CI_COMMIT_TAG##v}
# environment:
# - PLUGIN_DRY_RUN=true
# - PLUGIN_TAG=sometag
# - PLUGIN_DOCKERFILE=Dockerfile.noop
secrets:
- releaseteamtoken
- releaseteamuser
- domain
when:
event: tag

View file

@ -3,9 +3,6 @@ platform: linux/amd64
branches:
exclude: [ main, release/*, soft-fork/*/*, soft-fork/*/*/*, doc-* ]
depends_on:
- testing-amd64
workspace:
base: /source
path: /

View file

@ -1,66 +0,0 @@
platform: linux/amd64
branches:
exclude: [ main, release/*, soft-fork/*/*, soft-fork/*/*/*, doc-* ]
depends_on:
- compliance
workspace:
base: /go
path: src/codeberg/gitea
pipeline:
fetch-tags:
image: docker:git
pull: true
commands:
- git config --add safe.directory '*'
- git fetch --tags --force
deps-backend:
image: golang:1.19
pull: true
commands:
- make deps-backend
tag-pre-condition:
image: drone/git
pull: true
commands:
- git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
prepare-test-env:
image: gitea/test_env:linux-amd64
pull: true
commands:
- ./build/test-env-prepare.sh
build:
image: gitea/test_env:linux-amd64
environment:
- GOSUMDB=sum.golang.org
- TAGS=bindata sqlite sqlite_unlock_notify
commands:
- su gitea -c './build/test-env-check.sh'
- su gitea -c 'make backend'
unit-test:
image: gitea/test_env:linux-amd64
environment:
- TAGS=bindata sqlite sqlite_unlock_notify
- RACE_ENABLED=true
secrets:
- github_read_token
commands:
- su gitea -c 'make unit-test-coverage test-check'
test-sqlite:
image: gitea/test_env:linux-amd64
environment:
- USE_REPO_TEST_DIR=1
- GOPROXY=off
- TAGS=bindata gogit sqlite sqlite_unlock_notify
- TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
commands:
- su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'