Update deployment script to fetch latest changes
Fetch latest changes from GitHub repository and update specific files.
This commit is contained in:
3
.github/workflows/ghcr.yml
vendored
3
.github/workflows/ghcr.yml
vendored
@@ -39,6 +39,9 @@ jobs:
|
||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||
script: |
|
||||
cd /home/dilanka/my_website
|
||||
git fetch https://${{ github.actor }}:${{ secrets.GHCR_PAT }}@github.com/DilankaHer/my_website.git main
|
||||
git checkout FETCH_HEAD -- docker-compose.yml my_website.db
|
||||
docker pull ghcr.io/dilankaher/my_website:latest
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user