add publish step to drone

This commit is contained in:
shibao 2022-02-10 23:17:06 -05:00
parent e9ef44eb53
commit f9d9fd1075

View File

@ -19,6 +19,16 @@ steps:
- npm install --prefix assets - npm install --prefix assets
- mix test - mix test
- name: build and publish
image: plugins/docker
settings:
repo: shibaobun/cannery
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
services: services:
- name: database - name: database
image: postgres:13 image: postgres:13
@ -26,3 +36,8 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres POSTGRES_DB: postgres
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock