fix: add push docker readme
This commit is contained in:
parent
4a053cc485
commit
cd0df47655
14
.drone.yml
14
.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:
|
||||
|
7
Makefile
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user