summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-07-24 19:21:12 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-07-24 13:21:12 -0400
commitd4667a4949729ad73b7dc0c633bd6daca4508073 (patch)
treeafdcf821c18827ca2ef57f7afa794f80ebf1d4e2 /.drone.yml
parent635e7b38bd6a43aac442178f04141c1030ecc1cc (diff)
downloadgitea-d4667a4949729ad73b7dc0c633bd6daca4508073.tar.gz
gitea-d4667a4949729ad73b7dc0c633bd6daca4508073.zip
drone/docker: prepare multi-arch release + provide arm64 image (#7571)
* drone/docker: prepare multi-arch release * Add docker-linux-arm64 pipeline * add arm 64 build to manifest * tag dry-run + indent * Fix notify dependency
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml99
1 files changed, 97 insertions, 2 deletions
diff --git a/.drone.yml b/.drone.yml
index d2d798e817..73f0080f85 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -560,7 +560,7 @@ steps:
---
kind: pipeline
-name: docker
+name: docker-linux-amd64
platform:
os: linux
@@ -596,6 +596,7 @@ steps:
settings:
dry_run: true
repo: gitea/gitea
+ tags: linux-amd64
when:
event:
- pull_request
@@ -605,6 +606,7 @@ steps:
image: plugins/docker:linux-amd64
settings:
auto_tag: true
+ auto_tag_suffix: linux-amd64
repo: gitea/gitea
password:
from_secret: docker_password
@@ -615,6 +617,97 @@ steps:
exclude:
- pull_request
+
+
+---
+kind: pipeline
+name: docker-linux-arm64
+
+platform:
+ os: linux
+ arch: arm64
+
+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
+ image: docker:git
+ commands:
+ - git fetch --tags --force
+ when:
+ event:
+ exclude:
+ - pull_request
+
+ - name: dryrun
+ pull: always
+ image: plugins/docker:linux-arm64
+ settings:
+ dry_run: true
+ repo: gitea/gitea
+ tags: linux-arm64
+ when:
+ event:
+ - pull_request
+
+ - name: publish
+ pull: always
+ image: plugins/docker:linux-arm64
+ settings:
+ auto_tag: true
+ auto_tag_suffix: linux-arm64
+ repo: gitea/gitea
+ password:
+ from_secret: docker_password
+ username:
+ from_secret: docker_username
+ when:
+ event:
+ exclude:
+ - pull_request
+
+---
+kind: pipeline
+name: docker-manifest
+
+platform:
+ os: linux
+ arch: amd64
+
+steps:
+ - name: manifest
+ pull: always
+ image: plugins/manifest
+ settings:
+ auto_tag: true
+ ignore_missing: true
+ spec: docker/manifest.tmpl
+ password:
+ from_secret: docker_password
+ username:
+ from_secret: docker_username
+
+trigger:
+ ref:
+ - refs/heads/master
+ - "refs/tags/**"
+
+depends_on:
+ - docker-linux-amd64
+ - docker-linux-arm64
+
---
kind: pipeline
name: notify
@@ -637,7 +730,9 @@ depends_on:
- translations
- release-version
- release-master
- - docker
+ - docker-linux-amd64
+ - docker-linux-arm64
+ - docker-manifest
- docs
steps: