mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 12:21:16 +00:00
Adding woodpecker 1 (#137)
This commit is contained in:
parent
aa9e4d9f45
commit
cf4e62bf64
1 changed files with 14 additions and 26 deletions
|
@ -1,35 +1,26 @@
|
||||||
---
|
pipeline:
|
||||||
kind: pipeline
|
fetch_git_submodules:
|
||||||
name: amd64
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: fetch git submodules
|
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update --recursive
|
- git submodule update --recursive
|
||||||
|
|
||||||
- name: yarn
|
yarn:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- yarn
|
||||||
|
|
||||||
- name: yarn lint
|
yarn_lint:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
commands:
|
commands:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
- name: yarn build:dev
|
yarn_build_dev:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
commands:
|
commands:
|
||||||
- yarn build:dev
|
- yarn build:dev
|
||||||
|
|
||||||
- name: nightly instance crawl
|
nightly_instance_crawl:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
commands:
|
commands:
|
||||||
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
||||||
|
@ -39,7 +30,7 @@ steps:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
|
|
||||||
- name: nightly build and push to docker hub
|
nightly_build_and_push_to_docker_hub:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -54,17 +45,16 @@ steps:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
|
|
||||||
- name: release instance crawl
|
release_instance_crawl:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
commands:
|
commands:
|
||||||
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
||||||
- apk add cargo pkgconfig openssl openssl-dev libpq libpq-dev
|
- apk add cargo pkgconfig openssl openssl-dev libpq libpq-dev
|
||||||
- yarn crawl
|
- yarn crawl
|
||||||
when:
|
when:
|
||||||
ref:
|
event: tag
|
||||||
- refs/tags/*
|
|
||||||
|
|
||||||
- name: release build and push to docker hub
|
release_build_and_push_to_docker_hub:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -76,10 +66,9 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
when:
|
when:
|
||||||
ref:
|
event: tag
|
||||||
- refs/tags/*
|
|
||||||
|
|
||||||
- name: Notify on failure
|
notify_on_failure:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
- apk add curl
|
- apk add curl
|
||||||
|
@ -88,11 +77,10 @@ steps:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
- name: Notify on tag deploy
|
notify_on_tag_deploy:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
- apk add curl
|
- apk add curl
|
||||||
- "curl -d'joinlemmy-site:${DRONE_TAG} deployed' ntfy.sh/lemmy_drone_ci"
|
- "curl -d'joinlemmy-site:${DRONE_TAG} deployed' ntfy.sh/lemmy_drone_ci"
|
||||||
when:
|
when:
|
||||||
ref:
|
event: tag
|
||||||
- refs/tags/*
|
|
Loading…
Reference in a new issue