From 2e1f850c7e0bbf0b1d784d07350f8b37ff437626 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 30 Jul 2022 16:24:21 -0400 Subject: [PATCH] update drone config --- .drone.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3854ed6..1078fe8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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/memex_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/memex + 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/memex + 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