Skip to content

Commit

Permalink
Merge branch 'main' into fix-margin
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jul 18, 2021
2 parents a063d73 + 2344007 commit b05a5c1
Show file tree
Hide file tree
Showing 148 changed files with 3,686 additions and 1,368 deletions.
16 changes: 8 additions & 8 deletions .changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ groups:
name: BREAKING
labels:
- kind/breaking
-
name: FEATURES
labels:
- kind/feature
-
name: SECURITY
labels:
- kind/security
-
name: API
name: FEATURES
labels:
- kind/api
- kind/feature
-
name: BUGFIXES
name: API
labels:
- kind/bug
- kind/api
-
name: ENHANCEMENTS
labels:
- kind/enhancement
- kind/refactor
- kind/ui
-
name: BUGFIXES
labels:
- kind/bug
-
name: TESTING
labels:
Expand Down
208 changes: 196 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,17 @@ steps:
GITHUB_READ_TOKEN:
from_secret: github_read_token

- name: unit-test-race
image: golang:1.16
commands:
- make test-backend
environment:
GOPROXY: off
TAGS: sqlite sqlite_unlock_notify
RACE_ENABLED: true
GITHUB_READ_TOKEN:
from_secret: github_read_token

- name: unit-test-gogit
pull: always
image: golang:1.16
Expand Down Expand Up @@ -404,7 +415,7 @@ steps:

- name: update
pull: default
image: alpine:3.14
image: alpine:3.13
commands:
- ./build/update-locales.sh

Expand Down Expand Up @@ -691,7 +702,7 @@ steps:

---
kind: pipeline
name: docker-linux-amd64-release
name: docker-linux-amd64-release-version

platform:
os: linux
Expand All @@ -703,7 +714,6 @@ depends_on:

trigger:
ref:
- refs/heads/main
- "refs/tags/**"
event:
exclude:
Expand All @@ -717,7 +727,7 @@ steps:

- name: publish
pull: always
image: plugins/docker:linux-amd64
image: techknowlogick/drone-docker:latest
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
Expand All @@ -734,7 +744,7 @@ steps:
- pull_request

- name: publish-rootless
image: plugins/docker:linux-amd64
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
Expand All @@ -754,6 +764,70 @@ steps:
exclude:
- pull_request

---
kind: pipeline
name: docker-linux-amd64-release

platform:
os: linux
arch: amd64

depends_on:
- testing-amd64
- testing-arm64

trigger:
ref:
- refs/heads/main
event:
exclude:
- cron

steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags --force

- name: publish
pull: always
image: techknowlogick/drone-docker:latest
settings:
auto_tag: false
tags: dev-linux-amd64
repo: gitea/gitea
build_args:
- GOPROXY=off
password:
from_secret: docker_password
username:
from_secret: docker_username
when:
event:
exclude:
- pull_request

- name: publish-rootless
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
tags: dev-linux-amd64-rootless
repo: gitea/gitea
build_args:
- GOPROXY=off
password:
from_secret: docker_password
username:
from_secret: docker_username
environment:
PLUGIN_MIRROR:
from_secret: plugin_mirror
when:
event:
exclude:
- pull_request

---
kind: pipeline
name: docker-linux-arm64-dry-run
Expand All @@ -772,7 +846,7 @@ trigger:
steps:
- name: dryrun
pull: always
image: plugins/docker:linux-arm64
image: techknowlogick/drone-docker:latest
settings:
dry_run: true
repo: gitea/gitea
Expand All @@ -788,7 +862,7 @@ steps:

---
kind: pipeline
name: docker-linux-arm64-release
name: docker-linux-arm64-release-version

platform:
os: linux
Expand All @@ -800,7 +874,6 @@ depends_on:

trigger:
ref:
- refs/heads/main
- "refs/tags/**"
event:
exclude:
Expand All @@ -814,7 +887,7 @@ steps:

- name: publish
pull: always
image: plugins/docker:linux-arm64
image: techknowlogick/drone-docker:latest
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
Expand All @@ -834,7 +907,7 @@ steps:
- pull_request

- name: publish-rootless
image: plugins/docker:linux-arm64
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
Expand All @@ -856,7 +929,73 @@ steps:

---
kind: pipeline
name: docker-manifest
name: docker-linux-arm64-release

platform:
os: linux
arch: arm64

depends_on:
- testing-amd64
- testing-arm64

trigger:
ref:
- refs/heads/main
event:
exclude:
- cron

steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags --force

- name: publish
pull: always
image: techknowlogick/drone-docker:latest
settings:
auto_tag: false
tags: dev-linux-arm64
repo: gitea/gitea
build_args:
- GOPROXY=off
password:
from_secret: docker_password
username:
from_secret: docker_username
environment:
PLUGIN_MIRROR:
from_secret: plugin_mirror
when:
event:
exclude:
- pull_request

- name: publish-rootless
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
tags: dev-linux-arm64-rootless
repo: gitea/gitea
build_args:
- GOPROXY=off
password:
from_secret: docker_password
username:
from_secret: docker_username
environment:
PLUGIN_MIRROR:
from_secret: plugin_mirror
when:
event:
exclude:
- pull_request
---
kind: pipeline
name: docker-manifest-version

platform:
os: linux
Expand Down Expand Up @@ -888,12 +1027,54 @@ steps:

trigger:
ref:
- refs/heads/main
- "refs/tags/**"
event:
exclude:
- cron

depends_on:
- docker-linux-amd64-release-version
- docker-linux-arm64-release-version

---
kind: pipeline
name: docker-manifest

platform:
os: linux
arch: amd64

steps:
- name: manifest-rootless
pull: always
image: plugins/manifest
settings:
auto_tag: false
ignore_missing: true
spec: docker/manifest.rootless.tmpl
password:
from_secret: docker_password
username:
from_secret: docker_username

- name: manifest
image: plugins/manifest
settings:
auto_tag: false
ignore_missing: true
spec: docker/manifest.tmpl
password:
from_secret: docker_password
username:
from_secret: docker_username

trigger:
ref:
- refs/heads/main
event:
exclude:
- cron

depends_on:
- docker-linux-amd64-release
- docker-linux-arm64-release
Expand Down Expand Up @@ -927,7 +1108,10 @@ depends_on:
- release-latest
- docker-linux-amd64-release
- docker-linux-arm64-release
- docker-linux-amd64-release-version
- docker-linux-arm64-release-version
- docker-manifest
- docker-manifest-version
- docs

steps:
Expand Down
Loading

0 comments on commit b05a5c1

Please sign in to comment.