Setup linux/amd64 + manifest
This commit is contained in:
parent
e2721b6190
commit
e47e6332ba
23
.drone.yml
23
.drone.yml
|
@ -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
4
docker/Makefile
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user