fix yml file for test env
Some checks failed
Restart Docker Container on Production / build (pull_request) Failing after 9s

This commit is contained in:
iTob 2024-09-20 10:13:24 +02:00
parent eecf5eb4c6
commit d7e614fbd6

View File

@ -22,7 +22,7 @@ jobs:
with: with:
registry: git.wohlleben.dev registry: git.wohlleben.dev
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ vars.REGISTRY_TOKEN }}
- name: Build and push WebApp container image - name: Build and push WebApp container image
run: | run: |
TODAY=$(date +'%Y-%m-%d') TODAY=$(date +'%Y-%m-%d')
@ -32,9 +32,9 @@ jobs:
- name: Restart all Docker Container on Test Environment - name: Restart all Docker Container on Test Environment
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with:
host: ${{ secrets.DOCKER_VM_HOST_ADDRESS }} host: ${{ vars.SRV02_DOCKER_VM_HOST_ADDRESS }}
username: ${{ secrets.DOCKER_VM_HOST_ROOT_USERNAME }} username: ${{ vars.SRV02_DOCKER_VM_USER_NAME }}
key: ${{ secrets.DOCKER_VM_SSH_USER_ROOT }} key: ${{ vars.SRV02_DOCKER_VM_ROOT_USER_SSH_KEY }}
script: | script: |
docker pull git.wohlleben.dev/itob/rbl-news-webapp:latest docker pull git.wohlleben.dev/itob/rbl-news-webapp:latest
docker stop rbl-news-webapp docker stop rbl-news-webapp