Commit tag update.
This commit is contained in:
@@ -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
|
||||
run: docker system prune -af --volumes
|
||||
Reference in New Issue
Block a user