mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
41 lines
660 B
YAML
41 lines
660 B
YAML
---
|
|
|
|
kind: pipeline
|
|
type: exec
|
|
name: deploy to prod
|
|
|
|
steps:
|
|
- name: composer
|
|
commands:
|
|
- composer install
|
|
- name: deploy to server
|
|
environment:
|
|
DEPLOY_COMMAND:
|
|
from_secret: deploy_command_prod
|
|
commands:
|
|
- $${DEPLOY_COMMAND}
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: exec
|
|
name: deploy to dev
|
|
|
|
steps:
|
|
- name: composer
|
|
commands:
|
|
- composer install
|
|
- name: deploy to server
|
|
environment:
|
|
DEPLOY_COMMAND:
|
|
from_secret: deploy_command_dev
|
|
commands:
|
|
- $${DEPLOY_COMMAND}
|
|
|
|
trigger:
|
|
branch:
|
|
- dev
|