summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2020-11-01 01:58:22 +0100
committerGitHub <noreply@github.com>2020-10-31 20:58:22 -0400
commitfe458ce877f520cc7f20116db4ff2a0536ff319b (patch)
tree6bdaa11737eb1317749e11d58da34e4423880604 /.drone.yml
parentf3bbd46c49fb7a2e3407d4da0db511930c957e3c (diff)
downloadgitea-fe458ce877f520cc7f20116db4ff2a0536ff319b.tar.gz
gitea-fe458ce877f520cc7f20116db4ff2a0536ff319b.zip
docker: rootless image (#10154)
* docker: rootless image * improve docs + remove check for write perm on custom * add more info on ssh passtrough * Add comment for internal ssh server in container config
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 872dcf750d..3dc033b991 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -667,6 +667,25 @@ steps:
exclude:
- pull_request
+ - name: publish-rootless
+ pull: always
+ image: plugins/docker:linux-amd64
+ settings:
+ dockerfile: Dockerfile.rootless
+ auto_tag: true
+ auto_tag_suffix: linux-amd64-rootless
+ repo: gitea/gitea
+ build_args:
+ - GOPROXY=off
+ password:
+ from_secret: docker_password
+ username:
+ from_secret: docker_username
+ when:
+ event:
+ exclude:
+ - pull_request
+
---
kind: pipeline
name: docker-linux-arm64-dry-run
@@ -745,6 +764,25 @@ steps:
exclude:
- pull_request
+ - name: publish-rootless
+ pull: always
+ image: plugins/docker:linux-arm64
+ settings:
+ dockerfile: Dockerfile.rootless
+ auto_tag: true
+ auto_tag_suffix: linux-arm64-rootless
+ repo: gitea/gitea
+ build_args:
+ - GOPROXY=off
+ password:
+ from_secret: docker_password
+ username:
+ from_secret: docker_username
+ when:
+ event:
+ exclude:
+ - pull_request
+
---
kind: pipeline
name: docker-manifest
@@ -766,6 +804,17 @@ steps:
username:
from_secret: docker_username
+ - name: manifest-rootless
+ pull: always
+ image: plugins/manifest
+ settings:
+ auto_tag: true
+ ignore_missing: true
+ spec: docker/manifest.rootless.tmpl
+ password:
+ from_secret: docker_password
+ username:
+ from_secret: docker_username
trigger:
ref:
- refs/heads/master