try with chown
This commit is contained in:
parent
ed29e3d934
commit
e64f196c0d
1 changed files with 13 additions and 18 deletions
31
.drone.yml
31
.drone.yml
|
@ -3,30 +3,29 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: cargo check
|
- name: chown repo
|
||||||
# we need to use this experimental image because the normal rust-musl-builder doesnt
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
# allow building as root (and drone doesnt have an easy way to git clone as non-root)
|
|
||||||
# https://github.com/emk/rust-musl-builder/issues/96
|
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
|
||||||
user: root
|
user: root
|
||||||
|
commands:
|
||||||
|
- chown 1000:1000 . -R
|
||||||
|
|
||||||
|
- name: cargo check
|
||||||
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
commands:
|
commands:
|
||||||
- cargo check --all
|
- cargo check --all
|
||||||
|
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
commands:
|
commands:
|
||||||
- cargo clippy
|
- cargo clippy
|
||||||
|
|
||||||
- name: check documentation build
|
- name: check documentation build
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
commands:
|
commands:
|
||||||
- mdbook build docs/
|
- mdbook build docs/
|
||||||
|
|
||||||
- name: install diesel cli
|
- name: install diesel cli
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dieselcli
|
- name: dieselcli
|
||||||
path: /dieselcli
|
path: /dieselcli
|
||||||
|
@ -35,8 +34,7 @@ steps:
|
||||||
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
environment:
|
environment:
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
|
@ -54,8 +52,7 @@ steps:
|
||||||
# TODO: this uses rust 1.48.0, which doesnt work with config-rs, so federation tests fail
|
# TODO: this uses rust 1.48.0, which doesnt work with config-rs, so federation tests fail
|
||||||
# https://github.com/LemmyNet/lemmy/issues/1270
|
# https://github.com/LemmyNet/lemmy/issues/1270
|
||||||
- name: cargo build
|
- name: cargo build
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dieselcli
|
- name: dieselcli
|
||||||
path: /dieselcli
|
path: /dieselcli
|
||||||
|
@ -64,7 +61,6 @@ steps:
|
||||||
|
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
image: node:15-buster-slim
|
image: node:15-buster-slim
|
||||||
user: root
|
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -y install --no-install-recommends bash curl postgresql-client
|
- apt-get -y install --no-install-recommends bash curl postgresql-client
|
||||||
|
@ -74,8 +70,7 @@ steps:
|
||||||
- yarn api-test
|
- yarn api-test
|
||||||
|
|
||||||
- name: create docker tags
|
- name: create docker tags
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
user: root
|
|
||||||
commands:
|
commands:
|
||||||
- echo "$(git describe),latest" > .tags
|
- echo "$(git describe),latest" > .tags
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue