From b869185559d3fe0b64c36ec37f4527043abc18c3 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 7 Apr 2021 16:54:05 +0200 Subject: [PATCH] redo, lots of boilerplate --- .drone.yml | 85 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 70 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index ba2ef1fb7..550db4c67 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,21 +55,6 @@ steps: - yarn - yarn api-test - - name: make release build and push to docker hub - image: plugins/docker - settings: - dockerfile: docker/prod/Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: dessalines/lemmy - auto_tag: true - auto_tag_suffix: linux-amd64 - when: - ref: - - refs/tags/* - - name: build latest development version and push to docker hub image: plugins/docker settings: @@ -87,6 +72,40 @@ steps: - main - drone-release-main + - name: push to docker manifest + image: plugins/manifest + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + target: "dessalines/lemmy:dev" + template: "dessalines/lemmy:dev-OS-ARCH" + platforms: + - linux/amd64 + - linux/arm64 + ignore_missing: true + when: + branch: + include: + - main + - drone-release-main + + - name: make release build and push to docker hub + image: plugins/docker + settings: + dockerfile: docker/prod/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: dessalines/lemmy + auto_tag: true + auto_tag_suffix: linux-amd64 + when: + ref: + - refs/tags/* + - name: push to docker manifest image: plugins/manifest settings: @@ -157,6 +176,42 @@ steps: - yarn - yarn api-test + - name: build latest development version and push to docker hub + image: plugins/docker + settings: + dockerfile: docker/prod/Dockerfile.arm + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: dessalines/lemmy + tags: + - dev + when: + branch: + include: + - main + - drone-release-main + + - name: push to docker manifest + image: plugins/manifest + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + target: "dessalines/lemmy:${DRONE_TAG}" + template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH" + platforms: + - linux/amd64 + - linux/arm64 + ignore_missing: true + when: + branch: + include: + - main + - drone-release-main + - name: make release build and push to docker hub image: plugins/docker settings: