6 Commits
v2 ... v4

Author SHA1 Message Date
4687f703fd Update README.md 2025-02-19 14:31:16 +01:00
fbc73a8426 change gitea.com to domain variable for data retrieval purposes 2025-02-19 14:29:51 +01:00
66381d7312 remove things 2025-02-19 14:22:34 +01:00
801a36fe2d merge README 2025-02-19 14:20:59 +01:00
8aacb87d31 update README version 2025-02-19 14:19:52 +01:00
3b39e2875a add -p flag to mkdir command 2025-02-19 14:17:30 +01:00
2 changed files with 9 additions and 8 deletions

View File

@ -27,7 +27,7 @@ This is a composite Gitea Action (Linux runner) for deploying repository content
with:
fetch-depth: 0
- name: "Deploy"
uses: https://code.klank.school/riviera/actions-file-deployer@v2
uses: https://code.klank.school/riviera/actions-file-deployer@v4
with:
remote-protocol: "sftp"
remote-host: "ftp.example.com"
@ -65,7 +65,7 @@ jobs:
with:
fetch-depth: 0
- name: "Deploy"
uses: https://code.klank.school/riviera/actions-file-deployer@v2
uses: https://code.klank.school/riviera/actions-file-deployer@v4
with:
remote-protocol: "sftp"
remote-host: "ftp.example.com"
@ -100,7 +100,7 @@ jobs:
| ftp-post-sync-commands | no | | Additionnal FTP command to run after sync |
| webhook | no | | Send webhook event notifications |
| artifacts | no | false | Upload logs/files to artifacts (true, false) |
| debug | no | false | Publish secrets on the internet (true, false) |
| debug | no | false(!)| Publish secrets on the internet (true, false) |
### Notes
@ -132,7 +132,7 @@ jobs:
"workflow": "workflow name",
"job": "deploy",
"run_id": "1234567890",
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"event_name": "push",
"actor": "username",
"message": "commit message",
@ -148,7 +148,7 @@ jobs:
"workflow": "workflow name",
"job": "deploy",
"run_id": "1234567890",
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"event_name": "push",
"actor": "username",
"message": "commit message",

View File

@ -198,7 +198,7 @@ runs:
echo "::group::Configurations"
config_ssh=~/.ssh/config
mkdir ~/.ssh && echo -e "ExitOnForwardFailure=yes\nStrictHostKeyChecking=no" > ${config_ssh} && chmod 600 ${config_ssh} && echo "File created: ${config_ssh}"
mkdir -p ~/.ssh && echo -e "ExitOnForwardFailure=yes\nStrictHostKeyChecking=no" > ${config_ssh} && chmod 600 ${config_ssh} && echo "File created: ${config_ssh}"
[ "${{inputs.debug}}" == "true" ] && cat ${config_ssh}
show_hr
@ -284,9 +284,10 @@ runs:
echo "::group::Prepare files"
domain="code.klank.school"
echo "Event: ${{gitea.event_name}}
Revision: https://gitea.com/${{gitea.repository}}/commit/${{gitea.sha}}
Revision: https://${domain}/${{gitea.repository}}/commit/${{gitea.sha}}
Committer: ${{gitea.actor}}
Message: ${{gitea.event.head_commit.message}}" && show_hr
@ -312,7 +313,7 @@ runs:
echo "::error::Commit history not found for delta synchronization. Please ensure you have 'fetch-depth: 0' option in checkout action. Please ignore if this is an initial commit or newly created branch."
exit 1
fi
domain="code.klank.school"
echo "Previous Revision: https://${domain}/${{gitea.repository}}/commit/${git_previous_commit}" && show_hr
# ${proxy_cmd} lftp -c "set log:enabled/xfer false; get -O ~ \"${remote_path_slash}.deploy-revision\"; exit 0"