This commit is contained in:
parent
b7cb223ee5
commit
ae5ea50ec0
1 changed files with 24 additions and 12 deletions
36
.drone.yml
36
.drone.yml
|
@ -11,7 +11,22 @@ steps:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose build frontend
|
- docker-compose build frontend
|
||||||
- name: publish
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: push-to-hub
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: ./docker/schwarzesbrett
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -20,15 +35,12 @@ steps:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: grimmigerfuchs/schwarzesbrett
|
repo: grimmigerfuchs/schwarzesbrett
|
||||||
tags: latest
|
tags: latest
|
||||||
context: ./docker/schwarzesbrett
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
volumes:
|
depends_on:
|
||||||
- name: dockersock
|
- frontend
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
Loading…
Reference in a new issue