From 8f93d582521f1ec3b6f2d5ea5e26ab9dad22669f Mon Sep 17 00:00:00 2001 From: nemanjam Date: Tue, 2 Jan 2024 16:49:11 +0100 Subject: [PATCH] test action --- .github/workflows/deploy-docker.yml | 2 +- .github/workflows/deploy-nginx.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index bc77744..3b5ff7c 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -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)" diff --git a/.github/workflows/deploy-nginx.yml b/.github/workflows/deploy-nginx.yml index 3ac32f9..bda6674 100644 --- a/.github/workflows/deploy-nginx.yml +++ b/.github/workflows/deploy-nginx.yml @@ -42,7 +42,7 @@ 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 }} @@ -50,8 +50,8 @@ jobs: 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