From fbdc3816ed76e2b50430a2dc7c5a18e1660e3537 Mon Sep 17 00:00:00 2001 From: markus Date: Sat, 9 Jan 2021 12:48:37 +0100 Subject: [PATCH] fix: add push docker readme --- .drone.yml | 14 ++++++++++++++ Makefile | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index b9cc6d3..8af5ba4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,6 +39,20 @@ steps: branch: - master +- name: push-readme + image: docker.io/volkerraschek/build-image:latest + commands: + - make push/README + environment: + CONTAINER_IMAGE_REGISTRY_PASSWORD: + from_secret: container_image_registry_password + volumes: + - name: docker_socket + path: /var/run/docker.sock + when: + branch: + - master + - name: notify image: drillster/drone-email environment: diff --git a/Makefile b/Makefile index 22ffbc5..9672370 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,13 @@ container-image/push: echo ${CONTAINER_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${CONTAINER_IMAGE_REGISTRY_NAME} --username ${CONTAINER_IMAGE_REGISTRY_USER} --password-stdin ${CONTAINER_RUNTIME} push ${CONTAINER_IMAGE_FULL} +# PUSH README +# ============================================================================== +PHONY+=push/README +push/README: + echo ${CONTAINER_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${CONTAINER_IMAGE_REGISTRY_NAME} --username ${CONTAINER_IMAGE_REGISTRY_USER} --password-stdin + docker pushrm ${CONTAINER_IMAGE_FULL} + # PHONY # ============================================================================== # Declare the contents of the PHONY variable as phony. We keep that information