2022-11-22 15:00:04 +01:00
|
|
|
# kind: pipeline
|
|
|
|
# type: ssh
|
|
|
|
# name: scoutrobot
|
|
|
|
#
|
|
|
|
# server:
|
|
|
|
# host: zoomyboy.de
|
|
|
|
# user: stammsilva
|
|
|
|
# ssh_key:
|
|
|
|
# from_secret: private_key
|
|
|
|
#
|
|
|
|
# clone:
|
|
|
|
# disable: true
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - name: master
|
|
|
|
# commands:
|
|
|
|
# - /usr/local/bin/deploy_scoutrobot_master
|
|
|
|
# when:
|
|
|
|
# branch:
|
|
|
|
# - master
|
|
|
|
# event:
|
|
|
|
# - push
|
|
|
|
#
|
2021-08-22 11:59:01 +02:00
|
|
|
kind: pipeline
|
2022-11-22 15:00:04 +01:00
|
|
|
type: docker
|
|
|
|
name: default
|
2021-08-22 11:59:01 +02:00
|
|
|
|
|
|
|
steps:
|
2022-11-22 15:00:04 +01:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
2022-11-22 15:43:14 +01:00
|
|
|
environment:
|
|
|
|
SSH_KEY:
|
2022-11-22 15:59:17 +01:00
|
|
|
from_secret: new_private_key
|
2022-11-22 15:52:31 +01:00
|
|
|
KNOWN_HOSTS:
|
|
|
|
from_secret: known_hosts
|
2022-11-22 15:00:04 +01:00
|
|
|
commands:
|
2022-11-22 15:44:19 +01:00
|
|
|
- mkdir $HOME/.ssh
|
2022-11-22 15:43:14 +01:00
|
|
|
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
2022-11-22 15:52:31 +01:00
|
|
|
- echo "$KNOWN_HOSTS" > $HOME/.ssh/known_hosts
|
2022-11-22 16:03:04 +01:00
|
|
|
- cat $HOME/.ssh/known_hosts
|
2022-11-22 15:43:14 +01:00
|
|
|
- chmod 600 $HOME/.ssh/id_rsa
|
2022-11-22 15:00:04 +01:00
|
|
|
- git submodule update --init --recursive
|
2022-11-22 17:27:25 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
event:
|
|
|
|
- push
|
2022-11-22 15:43:14 +01:00
|
|
|
|
2022-11-22 17:27:25 +01:00
|
|
|
- name: composer
|
|
|
|
image: composer:2.2.7
|
2022-11-22 15:00:04 +01:00
|
|
|
commands:
|
2022-11-22 17:27:25 +01:00
|
|
|
- composer install --ignore-platform-reqs --no-dev
|
2022-11-22 15:00:04 +01:00
|
|
|
when:
|
|
|
|
branch:
|
2022-11-22 17:27:25 +01:00
|
|
|
- dev
|
2022-11-22 15:00:04 +01:00
|
|
|
event:
|
|
|
|
- push
|
2022-11-22 17:27:25 +01:00
|
|
|
|
|
|
|
- name: node
|
|
|
|
image: node:17.9.0-slim
|
|
|
|
commands:
|
|
|
|
- npm install && npm run prod && rm -R node_modules
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|