Sam Therapy
e71bf66223
Do any of them work? probably not. Signed-off-by: Sam Therapy <sam@samtherapy.net>
37 lines
588 B
YAML
37 lines
588 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Deploy
|
|
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
- name: Build
|
|
depends_on:
|
|
- submodules
|
|
image: node:12
|
|
commands:
|
|
- yarn
|
|
- yarn build
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: Execute deploy script
|
|
depends_on:
|
|
- Build
|
|
image: ubuntu:latest
|
|
environment:
|
|
SSH_KEY:
|
|
from_secret: SSH_KEY
|
|
commands:
|
|
- apt update && apt install -y wget dos2unix openssh-client rsync
|
|
- ./ci/add-key.sh
|
|
- ./ci/deploy.sh
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- froth |