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