Master commit next.
Some checks failed
Gitea CI/CD / build (push) Failing after 31s

This commit is contained in:
clive
2024-05-06 23:44:09 +10:00
parent d2f13bfd2c
commit 3bd022b754
3 changed files with 52 additions and 16 deletions

View File

@@ -26,17 +26,14 @@ jobs:
- name: Push Docker image to registry
run: docker push registry.rokoh.com/rokoh:latest
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Install Docker
uses: docker/setup-action@v2
- name: Pull Docker image from registry
run: docker pull registry.rokoh.com/rokoh:latest
- name: Run Docker container
run: docker run -d -p 6000:80 registry.rokoh.com/rokoh:latest
- name: SSH Deploy
uses: appleboy/ssh-action@v1.0.3
with:
host: 10.1.1.90
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
docker pull registry.rokoh.com/rokoh:latest
docker stop rokoh || true
docker rm rokoh || true
docker run -d --name rokoh -p 6000:80 registry.rokoh.com/rokoh:latest