From cb8434e529f5a0586ce324c2082450c47a7dd9ff Mon Sep 17 00:00:00 2001 From: clive Date: Fri, 17 May 2024 09:50:07 +1000 Subject: [PATCH] Update .gitea/workflows/default.yml Commit tag update. --- .gitea/workflows/default.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/default.yml b/.gitea/workflows/default.yml index e0b6eaa..2bc772a 100644 --- a/.gitea/workflows/default.yml +++ b/.gitea/workflows/default.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 - name: Login to Docker registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -24,7 +24,7 @@ jobs: # run: docker tag rokoh:latest registry.rokoh.com/rokoh:latest - name: Push Docker image to registry - run: docker push registry.rokoh.com/rokoh:latest + run: docker push rokoh:latest - name: SSH Deploy 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 - name: Prune Docker resources - uses: appleboy/ssh-action@v1.0.3 - with: - host: 10.1.1.90 - username: ${{ secrets.SERVER_USERNAME }} - password: ${{ secrets.SERVER_PASSWORD }} - script: | - docker system prune -af --volumes \ No newline at end of file + run: docker system prune -af --volumes \ No newline at end of file