|
|
@ -570,6 +570,15 @@ workspace: |
|
|
|
base: /go |
|
|
|
base: /go |
|
|
|
path: src/code.gitea.io/gitea |
|
|
|
path: src/code.gitea.io/gitea |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- testing |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
|
|
|
|
ref: |
|
|
|
|
|
|
|
- refs/heads/master |
|
|
|
|
|
|
|
- "refs/tags/**" |
|
|
|
|
|
|
|
- "refs/pull/**" |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: fetch-tags |
|
|
|
- name: fetch-tags |
|
|
|
pull: default |
|
|
|
pull: default |
|
|
@ -583,56 +592,28 @@ steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: dryrun |
|
|
|
- name: dryrun |
|
|
|
pull: always |
|
|
|
pull: always |
|
|
|
image: plugins/docker:18.09 |
|
|
|
image: plugins/docker:linux-amd64 |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
cache_from: gitea/gitea |
|
|
|
|
|
|
|
dry_run: true |
|
|
|
dry_run: true |
|
|
|
repo: gitea/gitea |
|
|
|
repo: gitea/gitea |
|
|
|
when: |
|
|
|
when: |
|
|
|
event: |
|
|
|
event: |
|
|
|
- pull_request |
|
|
|
- pull_request |
|
|
|
|
|
|
|
|
|
|
|
- name: release |
|
|
|
- name: publish |
|
|
|
pull: always |
|
|
|
pull: always |
|
|
|
image: plugins/docker:18.09 |
|
|
|
image: plugins/docker:linux-amd64 |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
cache_from: gitea/gitea |
|
|
|
auto_tag: true |
|
|
|
repo: gitea/gitea |
|
|
|
repo: gitea/gitea |
|
|
|
tags: |
|
|
|
password: |
|
|
|
- "${DRONE_BRANCH##release/v}" |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_PASSWORD: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
DOCKER_USERNAME: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
depends_on: |
|
|
|
|
|
|
|
- dryrun |
|
|
|
|
|
|
|
when: |
|
|
|
when: |
|
|
|
branch: |
|
|
|
|
|
|
|
- "release/*" |
|
|
|
|
|
|
|
event: |
|
|
|
event: |
|
|
|
- push |
|
|
|
exclude: |
|
|
|
|
|
|
|
- pull_request |
|
|
|
- name: latest |
|
|
|
|
|
|
|
pull: always |
|
|
|
|
|
|
|
image: plugins/docker:18.09 |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
cache_from: gitea/gitea |
|
|
|
|
|
|
|
default_tags: true |
|
|
|
|
|
|
|
repo: gitea/gitea |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_PASSWORD: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
DOCKER_USERNAME: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- dryrun |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
branch: |
|
|
|
|
|
|
|
- master |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- push |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|