diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-07-17 16:47:34 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-07-17 10:47:34 -0400 |
commit | acf6bd42c444062bb18352015db05987958c870f (patch) | |
tree | 31d6beb3f203e956372551ac275903ff4ddd9cbc /.drone.yml | |
parent | aaf8c9f047185cab176744c091f51d7490baf5f8 (diff) | |
download | gitea-acf6bd42c444062bb18352015db05987958c870f.tar.gz gitea-acf6bd42c444062bb18352015db05987958c870f.zip |
drone/docker: Use a more standard format (#7480)
* drone/docker: Use a more standard format
Based on the plugin drone structure itself : https://github.com/drone-plugins/drone-docker/blob/ebce953fc443371d79b5a019fcc9c1976f60a09a/.drone.yml#L9
Use autotag : http://plugins.drone.io/drone-plugins/drone-docker/#autotag
* use latest plugins/docker:linux-amd64
* remove useless cache_from
* Don't depends on translations step
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 53 |
1 files changed, 17 insertions, 36 deletions
diff --git a/.drone.yml b/.drone.yml index 603cb99712..d2d798e817 100644 --- a/.drone.yml +++ b/.drone.yml @@ -570,6 +570,15 @@ workspace: base: /go path: src/code.gitea.io/gitea +depends_on: + - testing + +trigger: + ref: + - refs/heads/master + - "refs/tags/**" + - "refs/pull/**" + steps: - name: fetch-tags pull: default @@ -583,56 +592,28 @@ steps: - name: dryrun pull: always - image: plugins/docker:18.09 + image: plugins/docker:linux-amd64 settings: - cache_from: gitea/gitea dry_run: true repo: gitea/gitea when: event: - pull_request - - name: release + - name: publish pull: always - image: plugins/docker:18.09 + image: plugins/docker:linux-amd64 settings: - cache_from: gitea/gitea + auto_tag: true repo: gitea/gitea - tags: - - "${DRONE_BRANCH##release/v}" - environment: - DOCKER_PASSWORD: + password: from_secret: docker_password - DOCKER_USERNAME: + username: from_secret: docker_username - depends_on: - - dryrun when: - branch: - - "release/*" event: - - push - - - 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 + exclude: + - pull_request --- kind: pipeline |