24 lines
817 B
YAML
24 lines
817 B
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
target_version:
|
|
description: 'Target Version'
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
steps:
|
|
- id: deploy
|
|
run: |
|
|
curl -vLX POST \
|
|
-H "Content-Type: application/json" \
|
|
-H "X-Webhook-Token: ${{ secrets.DEPLOY_WEBHOOK_TOKEN }}" \
|
|
-d "{\"data\": \"$(echo ${{ env.script }} | base64 -w0)\"}" \
|
|
https://deploy.serguzim.me/hooks/deploy-reitanlage_oranienburg
|
|
env:
|
|
SCRIPT: |
|
|
cd /var/www/html
|
|
bin/gpm direct-install -y \
|
|
"https://git.serguzim.me/serguzim/reitanlage-oranienburg/releases/download/${{ inputs.target_version }}/reitanlage-oranienburg-${{ inputs.target_version }}.zip"
|
|
shell: bash
|