schwarzesbrett/.drone.yml

35 lines
679 B
YAML
Raw Normal View History

2022-08-02 08:28:19 +00:00
---
kind: pipeline
type: docker
2022-08-02 08:39:06 +00:00
name: frontend
2022-08-02 08:28:19 +00:00
steps:
- name: build
image: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
2022-08-02 08:29:59 +00:00
- docker-compose build frontend
2022-08-02 08:52:27 +00:00
- name: publish
2022-08-02 08:39:06 +00:00
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: grimmigerfuchs/schwarzesbrett
tags: latest
2022-08-02 08:55:02 +00:00
context: ./docker/schwarzesbrett
2022-08-02 08:52:27 +00:00
volumes:
- name: dockersock
path: /var/run/docker.sock
when:
branch:
- main
2022-08-02 08:39:06 +00:00
2022-08-02 08:52:27 +00:00
volumes:
- name: dockersock
host:
path: /var/run/docker.sock