ci: test without plugin
This commit is contained in:
parent
0418f07a69
commit
10b76fcffc
1 changed files with 11 additions and 15 deletions
26
.drone.yml
26
.drone.yml
|
@ -18,22 +18,18 @@ steps:
|
|||
- hadolint --version
|
||||
- hadolint Dockerfile
|
||||
|
||||
# Bauen, taggen und pushen
|
||||
- name: docker_build_and_push_master
|
||||
image: plugins/docker
|
||||
settings:
|
||||
- name: container
|
||||
image: docker:20
|
||||
environment:
|
||||
username:
|
||||
from_secret: OCI_REGISTRY_USER
|
||||
password:
|
||||
from_secret: OCI_REGISTRY_PASS
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/allzweckcontainer
|
||||
registry: registry.mgrote.net
|
||||
debug: true
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
commands:
|
||||
- docker build -t registry.mgrote.net/allzweckcontainer:latest .
|
||||
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
|
||||
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
|
||||
- docker login --username $username --password $password registry.mgrote.net
|
||||
- docker push registry.mgrote.net/allzweckcontainer:latest
|
||||
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
|
||||
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
|
||||
|
|
Loading…
Reference in a new issue