Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
changed vars to match Github env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada committed Aug 6, 2023
1 parent b27445e commit e68a3df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
- name: Stop and remove existing images with the same name on the droplet
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.DROPLET_IP_ADDRESS }}
username: ${{ secrets.SSHUSERNAME }}
password: ${{ secrets.SSHPASSWORD }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
if docker inspect ${{ env.IMAGE_NAME }} >/dev/null 2>&1; then
docker stop ${{ env.IMAGE_NAME }}
Expand All @@ -68,15 +68,15 @@ jobs:
- name: Deploy Docker image to DigitalOcean Droplet
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.DROPLET_IP_ADDRESS }}
username: ${{ secrets.SSHUSERNAME }}
password: ${{ secrets.SSHPASSWORD }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
docker run -d \
-p ${{ secrets.PORT }}:${{ secrets.PORT }} \
--env-file /home/${{ secrets.SSHUSERNAME }}/.env \
--env-file /home/${{ secrets.USERNAME }}/.env \
--restart=always \
--name ${{ env.IMAGE_NAME }} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}

0 comments on commit e68a3df

Please sign in to comment.