Added -o StrictHostKeyChecking=no
This commit is contained in:
parent
5827c00453
commit
7c0abeeafd
@ -62,14 +62,14 @@ jobs:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIV_KEY }}
|
||||
|
||||
- name: Login to registry
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY }}"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY }}"
|
||||
- name: Pull new image
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker pull ${{ vars.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker pull ${{ vars.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
|
||||
- name: Logout from registry
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker logout ${{ vars.REGISTRY }}"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker logout ${{ vars.REGISTRY }}"
|
||||
- name: Stop and Remove the container
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker stop ${{ env.IMAGE_NAME }} && docker remove ${{ env.IMAGE_NAME }}"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker stop ${{ env.IMAGE_NAME }} && docker remove ${{ env.IMAGE_NAME }}"
|
||||
- name: Recreate the container
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker run --name=${{ env.IMAGE_NAME }} ${{ env.IMAGE_NAME }}:latest"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker run --name=${{ env.IMAGE_NAME }} ${{ env.IMAGE_NAME }}:latest"
|
||||
- name: Clean old images
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} "docker image prune -a"
|
||||
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker image prune -a"
|
||||
|
Loading…
Reference in New Issue
Block a user