Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Dec 15, 2024
1 parent 40f04c1 commit 3bb5912
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up SSH Key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Configure SSH known_hosts
run: |
ssh-keyscan -H ${{ secrets.REMOTE_IP }} >> ~/.ssh/known_hosts
- name: Deploy using Docker Compose
env:
DOCKER_HOST: ssh://root@${{ secrets.REMOTE_IP }}
run: |
docker compose --file compose.yaml --file cloudflare.yaml --file logging.yaml up --build -d

0 comments on commit 3bb5912

Please sign in to comment.