Skip to content

Commit 1469510

Browse files
committed
Feat: CD 자동화
1 parent 3ae774c commit 1469510

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,20 @@ jobs:
3737
context: .
3838
platforms: linux/amd64,linux/arm64
3939
push: true
40-
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
40+
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

Comments
 (0)