Setup linux/amd64 + manifest

This commit is contained in:
Antoine GIRARD 2018-05-13 01:38:02 +02:00
parent e2721b6190
commit e47e6332ba
No known key found for this signature in database
GPG Key ID: F3B46D1708E22963
2 changed files with 23 additions and 4 deletions

View File

@ -241,7 +241,7 @@ pipeline:
pull: true
secrets: [ docker_username, docker_password ]
repo: gitea/gitea
tags: [ '${DRONE_BRANCH##release/v}' ]
tag: '${DRONE_BRANCH##release/v}-linux-amd64'
when:
event: [ push ]
branch: [ release/* ]
@ -251,7 +251,26 @@ pipeline:
secrets: [ docker_username, docker_password ]
pull: true
repo: gitea/gitea
default_tags: true
tag: latest-linux-amd64
when:
event: [ push, tag ]
docker:
image: plugins/manifest
secrets: [ docker_username, docker_password ]
platforms: linux/amd64
template: 'gitea/gitea:${DRONE_BRANCH##release/v}-ARCH'
target: 'gitea/gitea:${DRONE_BRANCH##release/v}'
when:
event: [ push ]
branch: [ release/* ]
docker:
image: plugins/manifest
secrets: [ docker_username, docker_password ]
platforms: linux/amd64
template: gitea/gitea:latest-ARCH
target: gitea/gitea:latest
when:
event: [ push, tag ]

4
docker/Makefile vendored
View File

@ -2,8 +2,8 @@
DOCKER_IMAGE ?= gitea/gitea
DOCKER_TAG ?= latest
DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)
DOCKER_PLATFORM ?= $(shell docker version -f {{.Server.Os}}-{{.Server.Arch}} 2>/dev/null || echo 'undefined')
DOCKER_REF ?= $(DOCKER_IMAGE):$(DOCKER_TAG)-$(DOCKER_PLATFORM)
.PHONY: docker
docker: