update drone config

This commit is contained in:
shibao 2022-07-30 16:08:31 -04:00 committed by oliviasculley
parent f0a8c515f9
commit 1e3cec95fe

View File

@ -16,21 +16,29 @@ steps:
- assets/node_modules/
- name: test
image: bitwalker/alpine-elixir-phoenix:1.13
image: elixir:1.13.4-alpine
environment:
TEST_DATABASE_URL: ecto://postgres:postgres@database/lokal_test
HOST: testing.example.tld
commands:
- apk add --no-cache build-base npm git python3
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- npm install --prefix assets
- mix deps.compile
- npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
- npm run --prefix ./assets deploy
- mix do phx.digest, gettext.extract
- mix test
- name: build and publish stable
image: plugins/docker
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
repo: shibaobun/lokal
purge: true
compress: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
username:
from_secret: docker_username
password:
@ -41,9 +49,13 @@ steps:
- stable
- name: build and publish tagged version
image: plugins/docker
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
repo: shibaobun/lokal
purge: true
compress: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
username:
from_secret: docker_username
password:
@ -77,7 +89,7 @@ services:
volumes:
- name: cache
host:
path: /tmp/drone-cache
path: /run/media/default/ssdsrv/gitea/drone-cache
- name: docker_sock
host:
path: /var/run/docker.sock