ci: test
This commit is contained in:
parent
3dfc1a0309
commit
aba24d3db1
1 changed files with 11 additions and 22 deletions
33
.drone.yml
33
.drone.yml
|
@ -18,27 +18,16 @@ steps:
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
|
|
||||||
- name: container
|
- name: docker_build_and_push
|
||||||
image: docker:dind
|
image: plugins/docker
|
||||||
environment:
|
settings:
|
||||||
DOCKER_USERNAME:
|
username:
|
||||||
from_secret: OCI-REGISTRY-USER
|
from_secret: OCI-REGISTRY-USER
|
||||||
DOCKER_PASSWORD:
|
password:
|
||||||
from_secret: OCI-REGISTRY-PASS
|
from_secret: OCI-REGISTRY-PASS
|
||||||
commands:
|
dockerfile: Dockerfile
|
||||||
- echo $DOCKER_USERNAME $DOCKER_PASSWORD
|
repo: quotengrote/allzweckcontainer
|
||||||
- docker build -t registry.mgrote.net/allzweckcontainer:latest .
|
tags:
|
||||||
#- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
# - docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
|
- ${DRONE_COMMIT_BRANCH}
|
||||||
- docker login registry.mgrote.net
|
- latest
|
||||||
- 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}
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
Loading…
Reference in a new issue