fix: add push docker readme

This commit is contained in:
Markus Pesch 2021-01-09 13:03:00 +01:00
parent 4a053cc485
commit cd0df47655
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 21 additions and 0 deletions

View File

@ -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:

View File

@ -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