ci: add new step

This commit is contained in:
Michael Grote 2023-04-10 18:59:36 +02:00
parent 1cd5c275d4
commit d932f0cb5c

View file

@ -19,22 +19,14 @@ steps:
- hadolint Dockerfile - hadolint Dockerfile
# Bauen, taggen und pushen # Bauen, taggen und pushen
- name: docker_build_and_push - name: docker_build_and_push_master
image: plugins/docker image: plugins/docker
settings: settings:
# Dockerhub-Username
# als Org-Secret hinterlegt
username: username:
from_secret: DOCKERHUB_USER from_secret: DOCKERHUB_USER
# Dockerhub-Password
# als Org-Secret hinterlegt
password: password:
from_secret: DOCKERHUB_PASS from_secret: DOCKERHUB_PASS
# Container-Registry
# registry: hub.docker.com
# Name des Containerfiles
dockerfile: Dockerfile dockerfile: Dockerfile
# Repo auf dem Dockerhub
repo: quotengrote/allzweckcontainer repo: quotengrote/allzweckcontainer
tags: tags:
- latest - latest
@ -46,3 +38,20 @@ steps:
event: event:
exclude: exclude:
- pull_request - pull_request
- name: docker_build_and_push
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/allzweckcontainer
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
when:
event:
exclude:
- pull_request