Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
4687f703fd | |||
fbc73a8426 | |||
66381d7312 | |||
801a36fe2d | |||
8aacb87d31 | |||
3b39e2875a |
10
README.md
10
README.md
@ -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",
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user