Skip to content

drone/docker: prepare multi-arch release + provide arm64 image #7571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ steps:

---
kind: pipeline
name: docker
name: docker-linux-amd64

platform:
os: linux
Expand Down Expand Up @@ -605,6 +605,7 @@ steps:
image: plugins/docker:linux-amd64
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: gitea/gitea
password:
from_secret: docker_password
Expand All @@ -615,6 +616,36 @@ steps:
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

---
kind: pipeline
name: notify
Expand Down
13 changes: 13 additions & 0 deletions docker/manifest.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux