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