diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3c43a22..a473b6f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -42,5 +42,16 @@ jobs: env: SSHPASS: ${{ secrets.STRATO_SSH_PASSWORD }} run: | - sshpass -e scp -oStrictHostKeyChecking=no ./build.tar.gz ${{ secrets.STRATO_SSH_USERNAME }}@ssh.strato.com/new-release.tar.gz - sshpass -e ssh -oStrictHostKeyChecking=no ${{ secrets.STRATO_SSH_USERNAME }}@ssh.strato.com ls -lah + sshpass -e scp -oStrictHostKeyChecking=no ./build.tar.gz ${{ secrets.STRATO_SSH_USERNAME }}@ssh.strato.com/build.tar.gz + sshpass -e ssh -oStrictHostKeyChecking=no ${{ secrets.STRATO_SSH_USERNAME }}@ssh.strato.com << EOF + rm -rf ./new-release + mkdir new-release + cd new-release + tar -xzvf ./build.tar.gz + cd .. + + rm -rf ./prev-release + mv ./public ./prev-release + mv ./new-release/html ./public + rm -rf ./new-release + EOF diff --git a/Dockerfile b/Dockerfile index 40e121e..061263b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN /var/www/html/scripts/christelmusic warmup FROM builder as zipper -RUN cd /var/www/ && tar -czvf /build.tar.gz html +RUN cd /var/www/html && tar -czvf /build.tar.gz . FROM base