From f8001ba16a20fc3768b29b8c53fae79187c03740 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 2 Sep 2020 21:16:39 +0200 Subject: [PATCH] refactor pushrm and use env vars --- .drone.yml | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index 898e299..68ff7e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -112,43 +112,28 @@ platform: steps: - name: pushrm-dockerhub + pull: always image: chko/docker-pushrm:1 - entrypoint: - - /docker-pushrm - command: - - --file - - README.md - - --short - - Rootless Bitwarden RS - Self-hosted password manager - - xoxys/${DRONE_REPO_NAME} environment: DOCKER_PASS: from_secret: docker_password DOCKER_USER: from_secret: docker_username - README_PATH: README.md - REPO_NAME: xoxys/${DRONE_REPO_NAME} - SHORT_DESCRIPTION: Rootless Bitwarden RS - Self-hosted password manager + PUSHRM_FILE: README.md + PUSHRM_SHORT: Rootless Alpine base image + PUSHRM_TARGET: xoxys/${DRONE_REPO_NAME} when: status: - success - name: pushrm-quay + pull: always image: chko/docker-pushrm:1 - entrypoint: - - /docker-pushrm - command: - - --provider - - quay - - --file - - README.md - - quay.io/thegeeklab/${DRONE_REPO_NAME} environment: APIKEY__QUAY_IO: from_secret: quay_token - README_PATH: README.md - REPO_NAME: thegeeklab/${DRONE_REPO_NAME} - SHORT_DESCRIPTION: Custom Alpine base image + PUSHRM_FILE: README.md + PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME} when: status: - success @@ -183,6 +168,6 @@ depends_on: --- kind: signature -hmac: 5c1f4137d8197db8094fad2c9207f1a62d598e1b6404275a8d895e06c65b90f2 +hmac: 697806cef75db8065295150bd8ed87bb0af80cb4ce7b1c370f410432690dcd67 ...