womp
This commit is contained in:
@@ -8,11 +8,8 @@ jobs:
|
||||
deploy-via-ssh:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "The job was triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "Branch ${{ gitea.ref }}, Repository ${{ gitea.repository }}"
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "Repository ${{ gitea.repository }} has been cloned to the runner."
|
||||
- name: Install SSH client and Git
|
||||
run: |
|
||||
sudo apt-get update
|
||||
@@ -27,9 +24,8 @@ jobs:
|
||||
run: >
|
||||
|
||||
ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
|
||||
cd ${{ gitea.secrets.PROJECT_PATH }}
|
||||
cd ${{ secrets.PROJECT_PATH }}
|
||||
echo "Pulling latest changes from main..."
|
||||
echo $PWD
|
||||
git pull origin master
|
||||
echo "Restarting Docker Compose services..."
|
||||
docker compose down
|
||||
|
||||
Reference in New Issue
Block a user