Skip to content

Merge pull request #300 from MrDave1999/dev #8

Merge pull request #300 from MrDave1999/dev

Merge pull request #300 from MrDave1999/dev #8

Workflow file for this run

name: CTF Deploy Production
on:
push:
branches:
- main
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: ${{ secrets.PORT }}
script: |
cd ctf-prod
git pull origin main
git status
sudo docker compose up --build -d
sudo docker builder prune -f -a
sudo docker image prune -f -a