Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsj4653 authored Jan 15, 2024
1 parent f6dacb1 commit ef5fc18
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit ef5fc18

Please sign in to comment.