Skip to content

Commit

Permalink
chore: Add Docker Compose deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
유미라 authored and 유미라 committed Dec 3, 2024
1 parent a684e52 commit 1e5c465
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-compose-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Compose Update

on:
push:
branches: [develop]
paths:
- 'docker-compose.yml'
- '.github/workflows/docker-compose-deploy.yml'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: mira
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/mira/web30-stop-troublepainter
export DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
docker compose pull
docker compose up -d

0 comments on commit 1e5c465

Please sign in to comment.