mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
use node docker image
This commit is contained in:
parent
56bea54536
commit
c939954f84
22
.drone.yml
22
.drone.yml
@ -67,9 +67,18 @@ steps:
|
||||
ref:
|
||||
- refs/tags/*
|
||||
|
||||
- name: run federation tests
|
||||
- name: cargo build
|
||||
image: ekidd/rust-musl-builder:experimental-stable
|
||||
user: root
|
||||
volumes:
|
||||
- name: dieselcli
|
||||
path: /dieselcli
|
||||
commands:
|
||||
- cargo build
|
||||
|
||||
- name: run federation tests
|
||||
image: node:15-alpine3.12
|
||||
user: root
|
||||
environment:
|
||||
LEMMY_JWT_SECRET: changeme
|
||||
LEMMY_FEDERATION__ENABLED: true
|
||||
@ -85,15 +94,14 @@ steps:
|
||||
LEMMY_FEDERATION__ALLOWED_INSTANCES: lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon
|
||||
LEMMY_SETUP__ADMIN_USERNAME: lemmy_alpha
|
||||
LEMMY_SETUP__SITE_NAME: lemmy-alpha
|
||||
volumes:
|
||||
- name: dieselcli
|
||||
path: /dieselcli
|
||||
commands:
|
||||
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
- sudo apt-get update
|
||||
- apt-get -y install --no-install-recommends yarn nodejs
|
||||
- mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
||||
- chown -R 991:991 volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
||||
- LEMMY_PORT=8541 cargo run &
|
||||
- LEMMY_PORT=8551 cargo run &
|
||||
- LEMMY_PORT=8541 ./target/debug/lemmy_server &
|
||||
- LEMMY_PORT=8551 ./target/debug/lemmy_server &
|
||||
- cd api_tests/
|
||||
- yarn
|
||||
- yarn api-test
|
||||
|
Loading…
Reference in New Issue
Block a user