From d9aa1c05390c093185d69f0db7cd4ca0e7522ed2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 2 Sep 2020 22:25:24 +0200 Subject: [PATCH] publish to quay and dockerhub --- .drone.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++---------- README.md | 6 +++++- 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2b273e7..038b98f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,8 +32,10 @@ steps: ref: - refs/heads/master - refs/tags/** + depends_on: + - dryrun -- name: publish +- name: publish-dockerhub image: plugins/docker settings: dockerfile: Dockerfile @@ -46,6 +48,25 @@ steps: ref: - refs/heads/master - refs/tags/** + depends_on: + - tags + +- name: publish-quay + image: plugins/docker + settings: + 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 @@ -59,6 +80,9 @@ steps: when: ref: - refs/tags/** + depends_on: + - publish-dockerhub + - publish-quay trigger: ref: @@ -75,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: CentOS 7 image to build RPM packages + PUSHRM_FILE: README.md + PUSHRM_SHORT: CentOS 7 image to build RPM packages + 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 @@ -120,6 +156,6 @@ depends_on: --- kind: signature -hmac: 43953f72141ac3b75e8b2dddd9941afa9edb407fc7b49d84e765689e748b0b7d +hmac: b74a38e11f80cbfc8c63779e0145740ccb232f142014b27a6a41b397a49c5e7d ... diff --git a/README.md b/README.md index 2ef0f3a..cb9baf1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ -# [rpmbuild](https://gitea.rknet.org/docker/rpmbuild) +# rpmbuild + +CentOS 7 image to build RPM packages [![Build Status](https://img.shields.io/drone/build/docker/rpmbuild?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/docker/rpmbuild) [![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/xoxys/rpmbuild) +[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/rpmbuild) +[![Source: Gitea](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white)](https://gitea.rknet.org/docker/rpmbuild) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/docker/rpmbuild/src/branch/master/LICENSE) Simple Docker image based on CentOS 7 to build RPM packages.