From 25d6a46af5d3c5e2524bb9933511f82eaec3dd17 Mon Sep 17 00:00:00 2001 From: Cosmic Otter Date: Wed, 23 Oct 2024 16:02:59 +0200 Subject: [PATCH] action: testing --- .github/workflows/github-actions.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index a26d792..a45a01f 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -9,12 +9,9 @@ jobs: - run: docker tag ml_model xcosmicotter/mlops_tp1 - run: echo "${{ secrets.SECRET_MLOPS_TP1 }}" | docker login -u "${{ secrets.SECRET_MLOPS_TP1_USERNAME }}" --password-stdin - run: docker push xcosmicotter/mlops_tp1:latest - - name: Install sshpass - run: sudo apt-get update && sudo apt-get install -y sshpass - - name: SSH into the server - run: | + - run: sudo apt-get update && sudo apt-get install -y sshpass + - run: | sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -o StrictHostKeyChecking=no ubuntu@20.86.55.5 - - run: docker pull xcosmicotter/mlops_tp1:latest - run: docker run -d -p 80:80 xcosmicotter/mlops_tp1:latest