Skip to content

fix volume

fix volume #137

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
jobs:
Deploy:
name: Deploy branch main
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: appleboy-ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.HOST_USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
cd python-uri-shortener
echo "Welcome!"
git pull origin main
docker system prune -a -f
docker-compose down
docker pull nginx:latest
docker login -u stefnie -p ${{ secrets.docker_hub_token }}
docker pull stefnie/api-image:latest
docker pull stefnie/api-image:latest
sudo nginx -t
docker-compose -f compose.yaml up -d