Added helm update to deployment
All checks were successful
Build & Push / build (push) Successful in 1m45s
All checks were successful
Build & Push / build (push) Successful in 1m45s
This commit is contained in:
@@ -101,4 +101,17 @@ jobs:
|
|||||||
-X POST \
|
-X POST \
|
||||||
https://${{ env.REGISTRY }}/api/packages/sebse/helm/api/charts \
|
https://${{ env.REGISTRY }}/api/packages/sebse/helm/api/charts \
|
||||||
-F "chart=@factorio-signal-exporter-0.0.0-latest.tgz" \
|
-F "chart=@factorio-signal-exporter-0.0.0-latest.tgz" \
|
||||||
--fail-with-body
|
--fail-with-body
|
||||||
|
|
||||||
|
- name: Deploy to prod
|
||||||
|
run: |
|
||||||
|
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.HELMBOT_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 factorio-signal-exporter -p prod -v 0.0.0-${SHORT_SHA}"
|
||||||
|
rm ~/.ssh/helmbot_deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user