Create pull_code.yml
This commit is contained in:
parent
97f6376a4e
commit
6a64b63304
|
|
@ -0,0 +1,28 @@
|
|||
name: Pull Code
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev_odex_base
|
||||
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
environment:
|
||||
description: 'Select Server'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- dev
|
||||
default: dev
|
||||
|
||||
jobs:
|
||||
|
||||
deploy_dev_server:
|
||||
name: Deploy to Dev Servers
|
||||
runs-on: odex30-runner
|
||||
if: (github.ref == 'refs/heads/dev_odex_base' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'dev')
|
||||
steps:
|
||||
- name: Checkout And Restart Project
|
||||
run: |
|
||||
sudo chmod +x /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh
|
||||
sudo /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh
|
||||
Loading…
Reference in New Issue