add publish step to drone

This commit is contained in:
shibao 2022-02-10 23:17:06 -05:00
parent e9ef44eb53
commit f9d9fd1075
1 changed files with 15 additions and 0 deletions

View File

@ -19,6 +19,16 @@ steps:
- npm install --prefix assets
- 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:
- name: database
image: postgres:13
@ -26,3 +36,8 @@ services:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock