Skip to content

manual_deploy

manual_deploy #12

Workflow file for this run

name: manual_deploy
on:
workflow_dispatch:
inputs:
environment:
description: "Target Environment"
required: true
default: "dev"
type: choice
options:
- dev
- prod
service:
description: "Service"
required: true
type: choice
options:
- web_wiki
- web_usuaris
- service_wiki
- service_sso
version:
description: "Version"
required: true
default: "1.0.0"
jobs:
manual_deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Execute SSH Command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
echo "Deploying ${{ inputs.service }} SERVICE VERSION: ${{ inputs.version }}"
cd ${{ secrets.SSO_PATH }}/dev
bash deploy.sh ${{ inputs.service }} ${{ inputs.version }}