diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6c018db..aca5043 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -101,4 +101,17 @@ jobs: -X POST \ https://${{ env.REGISTRY }}/api/packages/sebse/helm/api/charts \ -F "chart=@factorio-signal-exporter-0.0.0-latest.tgz" \ - --fail-with-body \ No newline at end of file + --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