Tshooting rsync #I-lost-count...
This commit is contained in:
@@ -105,22 +105,45 @@ jobs:
|
|||||||
notification_title: 'GITEA: Hugo'
|
notification_title: 'GITEA: Hugo'
|
||||||
notification_message: 'Broken link inspection done... 🔍'
|
notification_message: 'Broken link inspection done... 🔍'
|
||||||
- name: Setup rsync
|
- name: Setup rsync
|
||||||
id: rsync
|
id: setup_rsync
|
||||||
uses: GuillaumeFalourd/setup-rsync@v1.2
|
uses: GuillaumeFalourd/setup-rsync@v1.2
|
||||||
with:
|
with:
|
||||||
ssh_key: ${{ secrets.VPS_DEPLOY_KEY }}
|
ssh_key: ${{ secrets.VPS_DEPLOY_KEY }}
|
||||||
- name: Verifying key path
|
|
||||||
run: |
|
|
||||||
echo "SSK KEY PATH: ${{ steps.rsync.outputs.ssh_key_path }}"
|
|
||||||
- name: Testing rsync
|
- name: Testing rsync
|
||||||
env:
|
env:
|
||||||
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
||||||
VPS_DEPLOY_KEY: |
|
VPS_DEPLOY_KEY: ${{ steps.setup_rsync.outputs.ssh_key_path }}
|
||||||
${{ secrets.VPS_DEPLOY_KEY }}
|
|
||||||
run: |
|
run: |
|
||||||
rsync -e 'ssh -o StrictHostKeyChecking=no' -avz --progress --dry-run README.md charish@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
rsync -e 'ssh -i ${VPS_DEPLOY_KEY} -o StrictHostKeyChecking=no' -avz --progress --dry-run README.md charish@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
||||||
|
- name: Gotify Notification
|
||||||
|
uses: eikendev/gotify-action@master
|
||||||
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'GITEA: Hugo'
|
||||||
|
notification_message: 'Starting Hugo deployment... 🤞🏽'
|
||||||
|
- name: Generate Hugo Site & Deploy for Docker
|
||||||
|
env:
|
||||||
|
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
|
VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
|
VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
||||||
|
VPS_DEPLOY_KEY: |
|
||||||
|
$$ {{ secrets.VPS_DEPLOY_KEY }}
|
||||||
|
run: |
|
||||||
|
hugo version
|
||||||
|
hugo --minify --source .
|
||||||
|
rsync --progress -avz -e 'ssh -o StrictHostKeyChecking=no' ./public ${VPS_DEPLOY_USER}@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
||||||
|
- name: Restart Hugo Container
|
||||||
|
uses: appleboy/ssh-action@v1.2.2
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
|
username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
|
password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
|
||||||
|
key: ${{ secrets.VPS_DEPLOY_KEY }}
|
||||||
|
script: |
|
||||||
|
docker container restart hugo
|
||||||
# pr-merge:
|
# pr-merge:
|
||||||
# name: PR Merge
|
# name: PR Merge
|
||||||
# needs: [hugo-sanity-check]
|
# needs: [hugo-sanity-check]
|
||||||
@@ -170,37 +193,52 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# hugo-version: "latest"
|
# hugo-version: "latest"
|
||||||
# extended: true
|
# extended: true
|
||||||
# - name: Gotify Notification
|
# - name: Setup rsync
|
||||||
# uses: eikendev/gotify-action@master
|
# id: setup_rsync
|
||||||
# with:
|
# uses: GuillaumeFalourd/setup-rsync@v1.2
|
||||||
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
# with:
|
||||||
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
# ssh_key: ${{ secrets.VPS_DEPLOY_KEY }}
|
||||||
# notification_title: 'GITEA: Hugo'
|
# - run: echo "SSK KEY PATH ${{ steps.setup_rsync.outputs.ssh_key_path }}"
|
||||||
# notification_message: 'Starting Hugo deployment... 🤞🏽'
|
# - name: Testing rsync
|
||||||
# - name: Generate Hugo Site & Deploy for Docker
|
# env:
|
||||||
# env:
|
# VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
# VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
# VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
# VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
# VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
||||||
# VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
# VPS_DEPLOY_KEY: |
|
||||||
# VPS_DEPLOY_KEY: |
|
# ${{ secrets.VPS_DEPLOY_KEY }}
|
||||||
# $$ {{ secrets.VPS_DEPLOY_KEY }}
|
# run: |
|
||||||
# run: |
|
# rsync -e 'ssh -i ${{ steps.setup_rsync.outputs.ssh_key_path }} -o StrictHostKeyChecking=no' -avz --progress --dry-run README.md charish@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
||||||
# hugo version
|
# - name: Gotify Notification
|
||||||
# hugo --minify --source .
|
# uses: eikendev/gotify-action@master
|
||||||
# rsync --progress -avz -e 'ssh -o StrictHostKeyChecking=no' ./public ${VPS_DEPLOY_USER}@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
# with:
|
||||||
# - name: Restart Hugo Container
|
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
||||||
# uses: appleboy/ssh-action@v1.2.2
|
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||||
# with:
|
# notification_title: 'GITEA: Hugo'
|
||||||
# host: ${{ secrets.HUGO_SITE_HOST }}
|
# notification_message: 'Starting Hugo deployment... 🤞🏽'
|
||||||
# username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
# - name: Generate Hugo Site & Deploy for Docker
|
||||||
# password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
|
# env:
|
||||||
# key: ${{ secrets.VPS_DEPLOY_KEY }}
|
# VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
# script: |
|
# VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
# docker container restart hugo
|
# VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
|
||||||
# - name: Gotify Notification
|
# VPS_DEPLOY_KEY: |
|
||||||
# uses: eikendev/gotify-action@master
|
# $$ {{ secrets.VPS_DEPLOY_KEY }}
|
||||||
# with:
|
# run: |
|
||||||
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
# hugo version
|
||||||
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
# hugo --minify --source .
|
||||||
# notification_title: 'GITEA: Hugo'
|
# rsync --progress -avz -e 'ssh -o StrictHostKeyChecking=no' ./public ${VPS_DEPLOY_USER}@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
|
||||||
# notification_message: 'Hugo deployment successful!'
|
# - name: Restart Hugo Container
|
||||||
|
# uses: appleboy/ssh-action@v1.2.2
|
||||||
|
# with:
|
||||||
|
# host: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
|
# username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
|
# password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
|
||||||
|
# key: ${{ secrets.VPS_DEPLOY_KEY }}
|
||||||
|
# script: |
|
||||||
|
# docker container restart hugo
|
||||||
|
# - name: Gotify Notification
|
||||||
|
# uses: eikendev/gotify-action@master
|
||||||
|
# with:
|
||||||
|
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
||||||
|
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||||
|
# notification_title: 'GITEA: Hugo'
|
||||||
|
# notification_message: 'Hugo deployment successful!'
|
||||||
Reference in New Issue
Block a user