initial commit
This commit is contained in:
98
alterego/.drone.yml
Normal file
98
alterego/.drone.yml
Normal file
@ -0,0 +1,98 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: validate
|
||||
image: rust:1.49
|
||||
commands:
|
||||
- cargo test --release --target=armv7-unknown-linux-gnueabihf
|
||||
environment:
|
||||
APP_NAME: altherego
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
volumes:
|
||||
- name: cargo
|
||||
path: /usr/local/cargo
|
||||
- name: target
|
||||
path: /cache/target
|
||||
- name: rustup
|
||||
path: /usr/local/rustup
|
||||
|
||||
- name: test
|
||||
image: rust:1.49
|
||||
commands:
|
||||
- cargo test --release --target=armv7-unknown-linux-gnueabihf
|
||||
environment:
|
||||
APP_NAME: altherego
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
volumes:
|
||||
- name: cargo
|
||||
path: /usr/local/cargo
|
||||
- name: target
|
||||
path: /cache/target
|
||||
- name: rustup
|
||||
path: /usr/local/rustup
|
||||
depends_on:
|
||||
- validate
|
||||
|
||||
- name: build
|
||||
image: rust:1.49
|
||||
commands:
|
||||
- cargo build --release --target=armv7-unknown-linux-gnueabihf
|
||||
environment:
|
||||
APP_NAME: altherego
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
GIT_BRANCH: ${DRONE_COMMIT_BRANCH}
|
||||
GIT_REVISION: ${DRONE_COMMIT:0:8}
|
||||
volumes:
|
||||
- name: cargo
|
||||
path: /usr/local/cargo
|
||||
- name: target
|
||||
path: /cache/target
|
||||
- name: rustup
|
||||
path: /usr/local/rustup
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
- name: deploy
|
||||
image: rust:1.49
|
||||
commands:
|
||||
- sh scripts/deploy.sh
|
||||
environment:
|
||||
APP_NAME: altherego
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
SSH_PRIVATE_KEY:
|
||||
from_secret: ssh_pk_base64
|
||||
SSH_USER:
|
||||
from_secret: SSH_USER
|
||||
TARGET_DIR: /cache/target/armv7-unknown-linux-gnueabihf/release
|
||||
volumes:
|
||||
- name: cargo
|
||||
path: /usr/local/cargo
|
||||
- name: target
|
||||
path: /cache/target
|
||||
- name: rustup
|
||||
path: /usr/local/rustup
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
volumes:
|
||||
- name: target
|
||||
temp: {}
|
||||
- name: cargo
|
||||
host:
|
||||
path: /home/pi/.cargo
|
||||
- name: rustup
|
||||
host:
|
||||
path: /home/pi/.rustup
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: a942d89af2c38916d55ebe377709febf08145ce8e08a2b585dda8a1c251eaca0
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user