attempt proper deploy w/ IM installed

This commit is contained in:
David Eisinger
2024-09-26 10:28:52 -04:00
parent 830385bca9
commit 1f85fecab3

View File

@@ -51,36 +51,36 @@ jobs:
DITHER_SERVER: http://localhost:4567 DITHER_SERVER: http://localhost:4567
run: | run: |
source bin/get-last-commit.sh source bin/get-last-commit.sh
timeout 30 hugo --minify || echo "timeout!" hugo --minify
find public -name "*.enc" -type f -delete find public -name "*.enc" -type f -delete
# - name: Install SSH deploy key - name: Install SSH deploy key
# if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
# env: env:
# DEPLOY_KEY: ${{ secrets.CI_DEPLOY_KEY }} DEPLOY_KEY: ${{ secrets.CI_DEPLOY_KEY }}
# SERVER_IP: ${{ secrets.SERVER_IP }} SERVER_IP: ${{ secrets.SERVER_IP }}
# run: | run: |
# mkdir -p ~/.ssh mkdir -p ~/.ssh
# chmod 700 ~/.ssh chmod 700 ~/.ssh
# echo "$DEPLOY_KEY" > ~/.ssh/id_rsa echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
# ssh-keyscan $SERVER_IP > ~/.ssh/known_hosts ssh-keyscan $SERVER_IP > ~/.ssh/known_hosts
# - name: Deploy - name: Deploy
# if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
# env: env:
# SERVER_IP: ${{ secrets.SERVER_IP }} SERVER_IP: ${{ secrets.SERVER_IP }}
# run: | run: |
# rsync --version rsync --version
# rsync \ rsync \
# -v \ -v \
# -r \ -r \
# --delete \ --delete \
# public/* \ public/* \
# www-data@$SERVER_IP:/var/www/davideisinger.com www-data@$SERVER_IP:/var/www/davideisinger.com
- name: Upload dither.log # - name: Upload dither.log
uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
with: # with:
name: dither.log # name: dither.log
path: bin/dither/dither.log # path: bin/dither/dither.log