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 --version
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
|
|
||||||
# Bauen, taggen und pushen
|
- name: container
|
||||||
- name: docker_build_and_push_master
|
image: docker:20
|
||||||
image: plugins/docker
|
environment:
|
||||||
settings:
|
|
||||||
username:
|
username:
|
||||||
from_secret: OCI_REGISTRY_USER
|
from_secret: OCI_REGISTRY_USER
|
||||||
password:
|
password:
|
||||||
from_secret: OCI_REGISTRY_PASS
|
from_secret: OCI_REGISTRY_PASS
|
||||||
dockerfile: Dockerfile
|
commands:
|
||||||
repo: registry.mgrote.net/allzweckcontainer
|
- docker build -t registry.mgrote.net/allzweckcontainer:latest .
|
||||||
registry: registry.mgrote.net
|
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
|
||||||
debug: true
|
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
|
||||||
tags:
|
- docker login --username $username --password $password registry.mgrote.net
|
||||||
- latest
|
- docker push registry.mgrote.net/allzweckcontainer:latest
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
|
||||||
- ${DRONE_COMMIT_BRANCH}
|
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
|
|
Loading…
Reference in a new issue