Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Jan 2, 2024
1 parent d675523 commit 8f93d58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
port: ${{ secrets.REMOTE_PORT }}
script_stop: true
script: |
cd /home/ubuntu/traefik-proxy/apps/nemanjamiticcom
cd /home/ubuntu/traefik-proxy/apps/docker-nmc
echo "Old image tag: $(docker inspect --format '{{ index .RepoTags 0 }}' nemanjamitic/nemanjamiticcom)"
echo "Old image hash: $(docker inspect --format '{{ index .RepoDigests 0 }}' nemanjamitic/nemanjamiticcom)"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ jobs:
- name: Build nemanjamiticcom
run: yarn build:nmc

- name: Clean up websites dir
- name: Clean up website dir
uses: appleboy/ssh-action@master
with:
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/*
script: whoami
# script: rm -rf /home/ubuntu/traefik-proxy/apps/nginx-with-volume-nmc/website/*

- name: Copy dist folder to remote host
uses: appleboy/scp-action@master
Expand Down

0 comments on commit 8f93d58

Please sign in to comment.