Add Deploy CI #1
|
@ -0,0 +1,28 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: Deploy
|
||||
|
||||
steps:
|
||||
- name: Build
|
||||
image: node:10
|
||||
commands:
|
||||
- yarn
|
||||
- npm run 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
|
||||
- wget https://f.ruina.exposed/add-froth-key.sh && dos2unix ./add-froth-key.sh && chmod +x add-froth-key.sh && bash ./add-froth-key.sh
|
||||
- wget https://f.ruina.exposed/pleroma-fe-build-froth.sh && dos2unix ./pleroma-fe-build-froth.sh && chmod +x pleroma-fe-build-froth.sh && bash ./pleroma-fe-build-froth.sh
|
||||
when:
|
||||
event:
|
||||
- push
|
Loading…
Reference in New Issue