Skip to content

Commit

Permalink
rename env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Jan 2, 2024
1 parent 0ca39c5 commit d675523
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Deploy Docker


on:
workflow_run:
workflows: ['Build and push Docker - disabled']
Expand All @@ -18,10 +17,10 @@ jobs:
- name: Deploy latest image
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
key: ${{ secrets.VPS_KEY_ED25519 }}
port: ${{ secrets.VPS_PORT }}
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.REMOTE_KEY_ED25519 }}
port: ${{ secrets.REMOTE_PORT }}
script_stop: true
script: |
cd /home/ubuntu/traefik-proxy/apps/nemanjamiticcom
Expand All @@ -40,7 +39,3 @@ jobs:
# remove dangling images, optional
docker image prune -af
8 changes: 4 additions & 4 deletions .github/workflows/deploy-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
- name: Clean up websites dir
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
key: ${{ secrets.VPS_KEY_ED25519 }}
port: ${{ secrets.VPS_PORT }}
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.REMOTE_KEY_ED25519 }}
port: ${{ secrets.REMOTE_PORT }}
script_stop: true
script: |
rm -rf /home/ubuntu/traefik-proxy/apps/nginx-with-volume-nmc/website/*
Expand Down

0 comments on commit d675523

Please sign in to comment.