Skip to content

Commit

Permalink
Merge pull request #210 from MrDave1999/deploy
Browse files Browse the repository at this point in the history
Add workflow to perform the deployment
  • Loading branch information
MrDave1999 authored Nov 3, 2024
2 parents 974e34c + 45d7b75 commit 0d65348
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Capture.The.Flag
name: CTF CI

on:
push:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CTF Deploy

on:
push:
branches:
- main
- test

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd Capture-The-Flag
git pull origin dev
git status
sudo docker compose up --build -d

0 comments on commit 0d65348

Please sign in to comment.