drone ci
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul Zinselmeyer 2023-06-10 18:19:43 +02:00
parent 32f1569969
commit 3ed0cd8939
Signed by: pfzetto
GPG key ID: 4EEF46A5B276E648

View file

@ -6,11 +6,6 @@ trigger:
event:
- push
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
- name: build
image: rust:slim
@ -21,16 +16,13 @@ steps:
when:
branch:
- master
image: docker:latest
volumes:
- name: dockersock
path: "/var/run/docker.sock"
environment:
REGISTRY: git2.zettoit.eu/zettoit/bin
REGISTRY_USER: droneci
REGISTRY_PASSWD:
image: plugins/docker
settings:
repo: git2.zettoit.eu/zettoit/bin
username: droneci
password:
from_secret: REGISTRY_PASSWD
commands:
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
- docker build -t $REGISTRY:latest . -f Dockerfile
- docker push $REGISTRY:latest
registry: git2.zettoit.eu
tags:
- latest
- master