From d6f1b5688ea35e51d80d734655af1f7244de61f9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 2 Sep 2020 21:54:04 +0200 Subject: [PATCH] publish to quay and dockerhub --- .drone.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++---------- README.md | 6 +++++- 2 files changed, 53 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4dcf21a..209dbb2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,8 +34,10 @@ steps: ref: - refs/heads/master - refs/tags/** + depends_on: + - dryrun -- name: publish +- name: publish-dockerhub image: plugins/docker settings: build_args: @@ -50,6 +52,27 @@ steps: ref: - refs/heads/master - refs/tags/** + depends_on: + - tags + +- name: publish-quay + image: plugins/docker + settings: + build_args: + - BUILD_VERSION=${DRONE_TAG%-*} + dockerfile: Dockerfile + password: + from_secret: quay_password + registry: quay.io + repo: quay.io/thegeeklab/${DRONE_REPO_NAME} + username: + from_secret: quay_username + when: + ref: + - refs/heads/master + - refs/tags/** + depends_on: + - tags - name: publish-gitea image: plugins/gitea-release @@ -63,6 +86,9 @@ steps: when: ref: - refs/tags/** + depends_on: + - publish-dockerhub + - publish-quay --- kind: pipeline @@ -73,17 +99,29 @@ platform: arch: amd64 steps: -- name: readme - image: sheogorath/readme-to-dockerhub +- name: pushrm-dockerhub + pull: always + image: chko/docker-pushrm:1 environment: - DOCKERHUB_PASSWORD: + DOCKER_PASS: from_secret: docker_password - DOCKERHUB_REPO_NAME: ${DRONE_REPO_NAME} - DOCKERHUB_REPO_PREFIX: xoxys - DOCKERHUB_USERNAME: + DOCKER_USER: from_secret: docker_username - README_PATH: README.md - SHORT_DESCRIPTION: Rootless Kanboard - Kanban project management software + PUSHRM_FILE: README.md + PUSHRM_SHORT: Rootless Kanboard - Kanban project management software + PUSHRM_TARGET: xoxys/${DRONE_REPO_NAME} + when: + status: + - success + +- name: pushrm-quay + pull: always + image: chko/docker-pushrm:1 + environment: + APIKEY__QUAY_IO: + from_secret: quay_token + PUSHRM_FILE: README.md + PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME} when: status: - success @@ -118,6 +156,6 @@ depends_on: --- kind: signature -hmac: da435e3f3e50ea68aa31142f4b31463cd9c4e5308607b1f1eed491638e858f33 +hmac: 6de8c4bda6096cd5de0da8809d028733c64a4b0a95eb5f2a5743c849bc88bc2c ... diff --git a/README.md b/README.md index 0ac0103..77c01f1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ -# [kanboard](https://gitea.rknet.org/docker/kanboard) +# kanboard + +Rootless Kanboard - Kanban project management software [![Build Status](https://img.shields.io/drone/build/docker/kanboard?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/docker/kanboard) [![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/xoxys/kanboard) +[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/kanboard) +[![Source: Gitea](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white)](https://gitea.rknet.org/docker/kanboard) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/docker/kanboard/src/branch/master/LICENSE) > __WARNING__: since release v1.2.1102 this image is a rootless image and may BREAK your setup!