Skip to content

chore: update deploy-prod.yml #31

chore: update deploy-prod.yml

chore: update deploy-prod.yml #31

Workflow file for this run

name: CTF Deploy Test
on:
push:
branches:
- test
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
cd ctf-test
git pull origin dev
git status
sudo docker compose up --build -d
sudo docker builder prune -f -a
sudo docker image prune -f -a