Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
syhdtmp committed Aug 7, 2024
1 parent 38faee9 commit bba145f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/cosmos-explorer
syhdtmp/cosmos-explorer
tags: |
type=sha
type=schedule
Expand All @@ -46,13 +46,12 @@ jobs:
sudo apt-get install -y sshpass
- name: Deploy to VPS
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
run: |
sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST << EOF
sudo su
docker pull $DOCKERHUB_USERNAME/cosmos-explorer:latest
docker run -d --name cosmos-explorer -p 5001:80 $DOCKERHUB_USERNAME/cosmos-explorer:latest
docker pull syhdtmp/cosmos-explorer:latest
docker run -d --name cosmos-explorer -p 5001:80 syhdtmp/cosmos-explorer:latest
EOF

0 comments on commit bba145f

Please sign in to comment.