Update .gitea/workflows/default.yml
Some checks failed
Gitea CI/CD / build (push) Failing after 39s

Commit tag update.
This commit is contained in:
2024-05-17 09:50:07 +10:00
parent 3797191107
commit cb8434e529

View File

@@ -11,7 +11,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Login to Docker registry - name: Login to Docker registry
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@@ -24,7 +24,7 @@ jobs:
# run: docker tag rokoh:latest registry.rokoh.com/rokoh:latest # run: docker tag rokoh:latest registry.rokoh.com/rokoh:latest
- name: Push Docker image to registry - name: Push Docker image to registry
run: docker push registry.rokoh.com/rokoh:latest run: docker push rokoh:latest
- name: SSH Deploy - name: SSH Deploy
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
@@ -42,10 +42,4 @@ jobs:
docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/rokoh docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/rokoh
- name: Prune Docker resources - name: Prune Docker resources
uses: appleboy/ssh-action@v1.0.3 run: docker system prune -af --volumes
with:
host: 10.1.1.90
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
docker system prune -af --volumes