try and fix ci
This commit is contained in:
@@ -80,18 +80,20 @@ jobs:
|
|||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
run: docker push git.rivercry.com/wg/monitor-im-flur
|
run: docker push git.rivercry.com/wg/monitor-im-flur
|
||||||
- name: Deploy via SSH
|
- name: Deploy via SSH
|
||||||
uses: appleboy/ssh-action@v0.1.10
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
host: rivercry.com
|
host: rivercry.com
|
||||||
port: 20022
|
port: 20022
|
||||||
username: docker
|
username: docker
|
||||||
password: ${{ secrets.GARRISON_DOCKER_PASSWORD }}
|
password: ${{ secrets.GARRISON_DOCKER_PASSWORD }}
|
||||||
script: |
|
script: |
|
||||||
cd monitor-im-flur
|
set -e
|
||||||
|
cd monitor-im-flur || exit 1
|
||||||
git clean -dfx
|
git clean -dfx
|
||||||
git reset --hard HEAD
|
git reset --hard HEAD
|
||||||
git pull
|
git pull
|
||||||
docker-compose pull
|
docker compose pull
|
||||||
docker-compose down
|
docker compose down --remove-orphans || true
|
||||||
docker-compose up -d
|
docker compose up -d
|
||||||
|
docker image prune -f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user