We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae774c commit 1469510Copy full SHA for 1469510
1 file changed
.github/workflows/ci.yml
@@ -37,4 +37,20 @@ jobs:
37
context: .
38
platforms: linux/amd64,linux/arm64
39
push: true
40
- tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
+ tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
41
+
42
+ deploy:
43
+ needs: build-and-push
44
+ runs-on: ubuntu-latest
45
46
+ steps:
47
+ - name: Deploy to GCE
48
+ uses: appleboy/ssh-action@v1
49
+ with:
50
+ host: ${{ secrets.GCE_HOST }}
51
+ username: ${{ secrets.GCE_USER }}
52
+ key: ${{ secrets.GCE_SSH_PRIVATE_KEY }}
53
+ envs: GITHUB_SHA
54
+ script: |
55
+ sed -i "s|INGEST_IMAGE=.*|INGEST_IMAGE=ghcr.io/rabbittick/market-ingest-streamer:${GITHUB_SHA}|" ~/market-data-infra/.env
56
+ ~/market-data-infra/scripts/deploy.sh
0 commit comments