From ef5fc18aa35a215dd623db5f2639f382a94bca47 Mon Sep 17 00:00:00 2001 From: shinsj4653 Date: Mon, 15 Jan 2024 23:02:09 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 908ebaa..434ead5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,20 +50,17 @@ jobs: - name: Docker build run: | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} - docker build -t gdsc-solution-challenge-team4-pointer . - docker tag gdsc-solution-challenge-team4-pointer shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} - docker push shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} + docker buildx build --push --platform linux/amd64 -t shinsj4653/gdsc-solution-challenge-team4-pointer . # Deploy - name: Deploy - uses: appleboy/ssh-action@v0.1.4 + uses: appleboy/ssh-action@master with: host: 35.216.66.135 - username: shinsj4653 + username: ${{ secrets.SSH_USERNAME }} key: ${{ secrets.SSH_PRIVATE_KEY }} envs: GITHUB_SHA - port: 22 script: | sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} sudo docker pull shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7}