aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml584
1 files changed, 440 insertions, 144 deletions
diff --git a/.drone.yml b/.drone.yml
index cf0caf761..1181b809b 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -32,6 +32,7 @@ steps:
pull: always
commands:
- make deps-backend
+ - make deps-tools
volumes:
- name: deps
path: /go
@@ -168,7 +169,7 @@ steps:
---
kind: pipeline
type: docker
-name: testing-amd64
+name: testing-pgsql
platform:
os: linux
@@ -191,51 +192,26 @@ volumes:
temp: {}
services:
- - name: mysql
- image: mysql:5.7
- pull: always
- environment:
- MYSQL_ALLOW_EMPTY_PASSWORD: yes
- MYSQL_DATABASE: test
-
- - name: mysql8
- image: mysql:8
- pull: always
- environment:
- MYSQL_ALLOW_EMPTY_PASSWORD: yes
- MYSQL_DATABASE: testgitea
-
- - name: mssql
- image: mcr.microsoft.com/mssql/server:latest
- pull: always
+ - name: pgsql
+ pull: default
+ image: postgres:15
environment:
- ACCEPT_EULA: Y
- MSSQL_PID: Standard
- SA_PASSWORD: MwantsaSecurePassword1
+ POSTGRES_DB: test
+ POSTGRES_PASSWORD: postgres
- name: ldap
image: gitea/test-openldap:latest
pull: always
- - name: elasticsearch
- image: elasticsearch:7.5.0
- pull: always
- environment:
- discovery.type: single-node
-
- name: minio
image: minio/minio:RELEASE.2021-03-12T00-00-47Z
pull: always
commands:
- - minio server /data
+ - minio server /data
environment:
MINIO_ACCESS_KEY: 123456
MINIO_SECRET_KEY: 12345678
- - name: smtpimap
- image: tabascoterrier/docker-imap-devel:latest
- pull: always
-
steps:
- name: fetch-tags
image: docker:git
@@ -257,12 +233,6 @@ steps:
- name: deps
path: /go
- - name: tag-pre-condition
- image: drone/git
- pull: always
- commands:
- - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
-
- name: prepare-test-env
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
pull: always
@@ -278,88 +248,157 @@ steps:
environment:
GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
- TAGS: bindata sqlite sqlite_unlock_notify
+ TAGS: bindata
depends_on: [deps-backend, prepare-test-env]
volumes:
- name: deps
path: /go
- - name: unit-test
+ - name: test-pgsql
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - make unit-test-coverage test-check
+ - timeout -s ABRT 50m make test-pgsql-migration test-pgsql
environment:
GOPROXY: https://goproxy.io
- TAGS: bindata sqlite sqlite_unlock_notify
+ TAGS: bindata gogit
RACE_ENABLED: true
- GITHUB_READ_TOKEN:
- from_secret: github_read_token
- depends_on: [deps-backend, prepare-test-env]
+ TEST_TAGS: gogit
+ TEST_LDAP: 1
+ USE_REPO_TEST_DIR: 1
+ depends_on: [build]
volumes:
- name: deps
path: /go
- - name: unit-test-gogit
+---
+kind: pipeline
+type: docker
+name: testing-mysql
+
+platform:
+ os: linux
+ arch: amd64
+
+depends_on:
+ - compliance
+
+trigger:
+ event:
+ - push
+ - tag
+ - pull_request
+ paths:
+ exclude:
+ - docs/**
+
+volumes:
+ - name: deps
+ temp: {}
+
+services:
+ - name: mysql
+ image: mysql:5.7
+ pull: always
+ environment:
+ MYSQL_ALLOW_EMPTY_PASSWORD: yes
+ MYSQL_DATABASE: test
+
+ - name: elasticsearch
+ image: elasticsearch:7.5.0
+ pull: always
+ environment:
+ discovery.type: single-node
+
+ - name: smtpimap
+ image: tabascoterrier/docker-imap-devel:latest
+ pull: always
+
+steps:
+ - name: fetch-tags
+ image: docker:git
+ pull: always
+ commands:
+ - git config --global --add safe.directory /drone/src
+ - git fetch --tags --force
+ when:
+ event:
+ exclude:
+ - pull_request
+
+ - name: deps-backend
+ image: golang:1.20
+ pull: always
+ commands:
+ - make deps-backend
+ volumes:
+ - name: deps
+ path: /go
+
+ - name: prepare-test-env
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
+ pull: always
+ commands:
+ - ./build/test-env-prepare.sh
+
+ - name: build
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - make unit-test-coverage test-check
+ - ./build/test-env-check.sh
+ - make backend
environment:
- GOPROXY: https://goproxy.io
- TAGS: bindata gogit sqlite sqlite_unlock_notify
- RACE_ENABLED: true
- GITHUB_READ_TOKEN:
- from_secret: github_read_token
+ GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
+ GOSUMDB: sum.golang.org
+ TAGS: bindata
depends_on: [deps-backend, prepare-test-env]
volumes:
- name: deps
path: /go
- - name: test-mysql
+ - name: unit-test
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - make test-mysql-migration integration-test-coverage
+ - make unit-test-coverage test-check
environment:
GOPROXY: https://goproxy.io
TAGS: bindata
RACE_ENABLED: true
- TEST_LDAP: 1
- USE_REPO_TEST_DIR: 1
- TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
- depends_on: [build]
+ GITHUB_READ_TOKEN:
+ from_secret: github_read_token
+ depends_on: [deps-backend, prepare-test-env]
volumes:
- name: deps
path: /go
- - name: test-mysql8
+ - name: unit-test-gogit
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - timeout -s ABRT 50m make test-mysql8-migration test-mysql8
+ - make unit-test-coverage test-check
environment:
GOPROXY: https://goproxy.io
- TAGS: bindata
+ TAGS: bindata gogit
RACE_ENABLED: true
- TEST_LDAP: 1
- USE_REPO_TEST_DIR: 1
- depends_on: [build]
+ GITHUB_READ_TOKEN:
+ from_secret: github_read_token
+ depends_on: [deps-backend, prepare-test-env]
volumes:
- name: deps
path: /go
- - name: test-mssql
+ - name: test-mysql
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - make test-mssql-migration test-mssql
+ - make test-mysql-migration integration-test-coverage
environment:
GOPROXY: https://goproxy.io
TAGS: bindata
RACE_ENABLED: true
- TEST_LDAP: 1
USE_REPO_TEST_DIR: 1
+ TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
depends_on: [build]
volumes:
- name: deps
@@ -398,11 +437,12 @@ steps:
---
kind: pipeline
-name: testing-arm64
+type: docker
+name: testing-mysql8
platform:
os: linux
- arch: arm64
+ arch: amd64
depends_on:
- compliance
@@ -421,16 +461,102 @@ volumes:
temp: {}
services:
- - name: pgsql
- pull: default
- image: postgres:10
+ - name: mysql8
+ image: mysql:8
+ pull: always
environment:
- POSTGRES_DB: test
- POSTGRES_PASSWORD: postgres
+ MYSQL_ALLOW_EMPTY_PASSWORD: yes
+ MYSQL_DATABASE: testgitea
- - name: ldap
- pull: default
- image: gitea/test-openldap:latest
+steps:
+ - name: fetch-tags
+ image: docker:git
+ pull: always
+ commands:
+ - git config --global --add safe.directory /drone/src
+ - git fetch --tags --force
+ when:
+ event:
+ exclude:
+ - pull_request
+
+ - name: deps-backend
+ image: golang:1.20
+ pull: always
+ commands:
+ - make deps-backend
+ volumes:
+ - name: deps
+ path: /go
+
+ - name: prepare-test-env
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
+ pull: always
+ commands:
+ - ./build/test-env-prepare.sh
+
+ - name: build
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
+ user: gitea
+ commands:
+ - ./build/test-env-check.sh
+ - make backend
+ environment:
+ GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
+ GOSUMDB: sum.golang.org
+ TAGS: bindata
+ depends_on: [deps-backend, prepare-test-env]
+ volumes:
+ - name: deps
+ path: /go
+
+ - name: test-mysql8
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
+ user: gitea
+ commands:
+ - timeout -s ABRT 50m make test-mysql8-migration test-mysql8
+ environment:
+ GOPROXY: https://goproxy.io
+ TAGS: bindata
+ USE_REPO_TEST_DIR: 1
+ depends_on: [build]
+ volumes:
+ - name: deps
+ path: /go
+
+---
+kind: pipeline
+type: docker
+name: testing-mssql
+
+platform:
+ os: linux
+ arch: amd64
+
+depends_on:
+ - compliance
+
+trigger:
+ event:
+ - push
+ - tag
+ - pull_request
+ paths:
+ exclude:
+ - docs/**
+
+volumes:
+ - name: deps
+ temp: {}
+
+services:
+ - name: mssql
+ image: mcr.microsoft.com/mssql/server:latest
+ pull: always
+ environment:
+ ACCEPT_EULA: Y
+ MSSQL_PID: Standard
+ SA_PASSWORD: MwantsaSecurePassword1
steps:
- name: fetch-tags
@@ -454,13 +580,13 @@ steps:
path: /go
- name: prepare-test-env
- image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
pull: always
commands:
- ./build/test-env-prepare.sh
- name: build
- image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- ./build/test-env-check.sh
@@ -468,39 +594,102 @@ steps:
environment:
GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
- TAGS: bindata gogit sqlite sqlite_unlock_notify
+ TAGS: bindata
depends_on: [deps-backend, prepare-test-env]
volumes:
- name: deps
path: /go
- - name: test-sqlite
- image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
+ - name: test-mssql
+ image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - timeout -s ABRT 50m make test-sqlite-migration test-sqlite
+ - make test-mssql-migration test-mssql
environment:
GOPROXY: https://goproxy.io
- TAGS: bindata gogit sqlite sqlite_unlock_notify
- RACE_ENABLED: true
- TEST_TAGS: gogit sqlite sqlite_unlock_notify
+ TAGS: bindata
USE_REPO_TEST_DIR: 1
depends_on: [build]
volumes:
- name: deps
path: /go
- - name: test-pgsql
+---
+kind: pipeline
+name: testing-sqlite
+
+platform:
+ os: linux
+ arch: arm64
+
+depends_on:
+ - compliance
+
+trigger:
+ event:
+ - push
+ - tag
+ - pull_request
+ paths:
+ exclude:
+ - docs/**
+
+volumes:
+ - name: deps
+ temp: {}
+
+steps:
+ - name: fetch-tags
+ image: docker:git
+ pull: always
+ commands:
+ - git config --global --add safe.directory /drone/src
+ - git fetch --tags --force
+ when:
+ event:
+ exclude:
+ - pull_request
+
+ - name: deps-backend
+ image: golang:1.20
+ pull: always
+ commands:
+ - make deps-backend
+ volumes:
+ - name: deps
+ path: /go
+
+ - name: prepare-test-env
+ image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
+ pull: always
+ commands:
+ - ./build/test-env-prepare.sh
+
+ - name: build
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
user: gitea
commands:
- - timeout -s ABRT 50m make test-pgsql-migration test-pgsql
+ - ./build/test-env-check.sh
+ - make backend
+ environment:
+ GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
+ GOSUMDB: sum.golang.org
+ TAGS: bindata gogit sqlite sqlite_unlock_notify
+ depends_on: [deps-backend, prepare-test-env]
+ volumes:
+ - name: deps
+ path: /go
+
+ - name: test-sqlite
+ image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
+ user: gitea
+ commands:
+ - timeout -s ABRT 50m make test-sqlite-migration test-sqlite
environment:
GOPROXY: https://goproxy.io
- TAGS: bindata gogit
+ TAGS: bindata gogit sqlite sqlite_unlock_notify
RACE_ENABLED: true
- TEST_TAGS: gogit
- TEST_LDAP: 1
+ TEST_TAGS: gogit sqlite sqlite_unlock_notify
USE_REPO_TEST_DIR: 1
depends_on: [build]
volumes:
@@ -530,15 +719,6 @@ volumes:
- name: deps
temp: {}
-services:
- - name: pgsql
- pull: default
- image: postgres:10
- environment:
- POSTGRES_DB: testgitea-e2e
- POSTGRES_PASSWORD: postgres
- POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'
-
steps:
- name: deps-frontend
image: node:18
@@ -568,14 +748,12 @@ steps:
- curl -sLO https://go.dev/dl/go1.20.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
- apt-get -qq update && apt-get -qqy install build-essential
- - export TEST_PGSQL_SCHEMA=''
- ./build/test-env-prepare.sh
- - su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-pgsql"
+ - su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-sqlite"
environment:
GOPROXY: https://goproxy.io
GOSUMDB: sum.golang.org
USE_REPO_TEST_DIR: 1
- TEST_PGSQL_DBNAME: 'testgitea-e2e'
DEBIAN_FRONTEND: noninteractive
depends_on: [build-frontend, deps-backend]
volumes:
@@ -709,8 +887,11 @@ trigger:
- docs/**
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
volumes:
- name: deps
@@ -842,8 +1023,11 @@ trigger:
- tag
depends_on:
- - testing-arm64
- - testing-amd64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
volumes:
- name: deps
@@ -994,8 +1178,11 @@ platform:
arch: amd64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1006,6 +1193,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
steps:
- name: fetch-tags
@@ -1016,7 +1206,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: true
@@ -1028,13 +1218,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
@@ -1046,6 +1240,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1061,8 +1259,11 @@ platform:
arch: amd64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1070,6 +1271,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
steps:
- name: fetch-tags
@@ -1080,7 +1284,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
tags: ${DRONE_TAG##v}-linux-amd64
@@ -1091,13 +1295,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
tags: ${DRONE_TAG##v}-linux-amd64-rootless
@@ -1108,6 +1316,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1123,8 +1335,11 @@ platform:
arch: amd64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1142,7 +1357,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: false
@@ -1154,13 +1369,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
@@ -1172,6 +1391,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1186,8 +1409,11 @@ platform:
arch: amd64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1205,7 +1431,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: false
@@ -1217,13 +1443,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
@@ -1235,6 +1465,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1243,7 +1477,7 @@ steps:
---
kind: pipeline
type: docker
-name: docker-linux-arm64-dry-run
+name: docker-linux-amd64-dry-run
platform:
os: linux
@@ -1261,7 +1495,7 @@ trigger:
steps:
- name: dryrun
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
dry_run: true
@@ -1272,6 +1506,7 @@ steps:
environment:
PLUGIN_MIRROR:
from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
- pull_request
@@ -1286,8 +1521,11 @@ platform:
arch: arm64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1298,6 +1536,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
steps:
- name: fetch-tags
@@ -1308,7 +1549,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: true
@@ -1320,13 +1561,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
@@ -1338,6 +1583,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1353,8 +1602,11 @@ platform:
arch: arm64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1362,6 +1614,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
steps:
- name: fetch-tags
@@ -1372,7 +1627,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
tags: ${DRONE_TAG##v}-linux-arm64
@@ -1383,13 +1638,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
tags: ${DRONE_TAG##v}-linux-arm64-rootless
@@ -1400,6 +1659,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1415,8 +1678,11 @@ platform:
arch: arm64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1424,6 +1690,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
steps:
- name: fetch-tags
@@ -1434,7 +1703,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: false
@@ -1446,13 +1715,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
@@ -1464,6 +1737,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1478,8 +1755,11 @@ platform:
arch: arm64
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
trigger:
ref:
@@ -1497,7 +1777,7 @@ steps:
- git fetch --tags --force
- name: publish
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
pull: always
settings:
auto_tag: false
@@ -1509,13 +1789,17 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
- pull_request
- name: publish-rootless
- image: techknowlogick/drone-docker:latest
+ image: plugins/docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: false
@@ -1527,6 +1811,10 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
+ environment:
+ PLUGIN_MIRROR:
+ from_secret: plugin_mirror
+ DOCKER_BUILDKIT: 1
when:
event:
exclude:
@@ -1571,6 +1859,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
depends_on:
- docker-linux-amd64-release-version
@@ -1589,7 +1880,6 @@ platform:
steps:
- name: manifest-rootless
- pull: always
image: plugins/manifest
pull: always
settings:
@@ -1619,6 +1909,9 @@ trigger:
event:
exclude:
- cron
+ paths:
+ exclude:
+ - docs/**
depends_on:
- docker-linux-amd64-release
@@ -1650,8 +1943,11 @@ trigger:
- failure
depends_on:
- - testing-amd64
- - testing-arm64
+ - testing-mysql
+ - testing-mysql8
+ - testing-mssql
+ - testing-pgsql
+ - testing-sqlite
- release-version
- release-latest
- docker-linux-amd64-release