@lightupai/polaris 0.0.56 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,3 +68,28 @@ jobs:
68
68
  # Set version in package.json for this publish only (not committed)
69
69
  npm version "$NEW" --no-git-tag-version
70
70
  npm publish --access public
71
+
72
+ deploy:
73
+ needs: test
74
+ runs-on: ubuntu-latest
75
+ if: github.ref == 'refs/heads/master' && github.event_name == 'push'
76
+ concurrency:
77
+ group: production-deploy
78
+ cancel-in-progress: false
79
+
80
+ steps:
81
+ - name: Deploy to production
82
+ env:
83
+ DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
84
+ run: |
85
+ mkdir -p ~/.ssh
86
+ echo "$DEPLOY_SSH_KEY" > ~/.ssh/deploy_key
87
+ chmod 600 ~/.ssh/deploy_key
88
+ ssh-keyscan -H withpolaris.ai >> ~/.ssh/known_hosts
89
+ ssh -i ~/.ssh/deploy_key deploy@withpolaris.ai "
90
+ cd /opt/polaris &&
91
+ git pull --ff-only &&
92
+ docker compose -f docker-compose.prod.yml build &&
93
+ docker compose -f docker-compose.prod.yml up -d --remove-orphans &&
94
+ docker compose -f docker-compose.prod.yml ps
95
+ "
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "polaris": "bin/polaris",