Initial commit
This commit is contained in:
34
helm-deploy/action.yml
Normal file
34
helm-deploy/action.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Helm Deploy
|
||||
description: Deploy helm chart via helmbot SSH to vmd127288
|
||||
|
||||
inputs:
|
||||
app:
|
||||
description: App subfolder name in /home/sebse/helm, e.g. factorio-signal-exporter
|
||||
required: true
|
||||
profile:
|
||||
description: Deployment profile, e.g. prod or dev
|
||||
required: true
|
||||
version:
|
||||
description: Chart version to deploy, e.g. 0.0.0-abc1234
|
||||
required: true
|
||||
ssh-key:
|
||||
description: helmbot SSH private key
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Deploy via helmbot
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ inputs.ssh-key }}" > ~/.ssh/helmbot_deploy
|
||||
chmod 600 ~/.ssh/helmbot_deploy
|
||||
ssh -i ~/.ssh/helmbot_deploy \
|
||||
-o StrictHostKeyChecking=no \
|
||||
-p 1234 \
|
||||
helmbot@84.247.134.31 \
|
||||
" -s ${{ inputs.app }} -p ${{ inputs.profile }} -v ${{ inputs.version }}"
|
||||
EXIT_CODE=$?
|
||||
rm ~/.ssh/helmbot_deploy
|
||||
exit $EXIT_CODE
|
||||
Reference in New Issue
Block a user