mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-28 19:23:39 +00:00
ci(builds.sr.ht): implement adjustments for secrets detection on deploy
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
689c755817
commit
f102ad9e98
1 changed files with 21 additions and 15 deletions
36
.build.yml
36
.build.yml
|
@ -1,4 +1,6 @@
|
||||||
image: alpine/edge
|
image: alpine/edge
|
||||||
|
environment:
|
||||||
|
FF_ENABLE_COMMIT_DATA: "true"
|
||||||
packages:
|
packages:
|
||||||
- openssh-client
|
- openssh-client
|
||||||
- python3
|
- python3
|
||||||
|
@ -36,20 +38,24 @@ tasks:
|
||||||
- generate-archive: |
|
- generate-archive: |
|
||||||
cd tildeweb
|
cd tildeweb
|
||||||
tar cvzf tildeweb-prod-build.tar.gz public public_ctrl-c public_pages.dev
|
tar cvzf tildeweb-prod-build.tar.gz public public_ctrl-c public_pages.dev
|
||||||
#- deploy: |
|
- deploy: |
|
||||||
# if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
|
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
|
||||||
# complete-build
|
complete-build
|
||||||
# fi
|
exit 0
|
||||||
#
|
elif [ ! -f "$HOME/.ssh/passowrdless-auth-sshfs" ]; then
|
||||||
# cd tildeweb
|
complete-build
|
||||||
# echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
exit 0
|
||||||
# eval $(ssh-agent) && ssh-add ~/.ssh/passwordless-auth-sshfs
|
fi
|
||||||
# rsync -rP public ajhalili2006@vern.cc:/home/ajhalili2006/public_html/
|
|
||||||
# rsync -rP public_ctrl-c ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html/
|
cd tildeweb
|
||||||
# #rsync -rP gmi ajhalili2006@vern.cc:/home/ajhalili2006/public_gemini/
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
||||||
# #rsync -rP gmi ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_gemini/
|
eval $(ssh-agent) && ssh-add ~/.ssh/passwordless-auth-sshfs
|
||||||
#
|
rsync -rP public ajhalili2006@vern.cc:/home/ajhalili2006/public_html/ || true
|
||||||
# git push origin -o skip-ci
|
rsync -rP public_ctrl-c ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html/ || true
|
||||||
# git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
|
#rsync -rP gmi ajhalili2006@vern.cc:/home/ajhalili2006/public_gemini/
|
||||||
|
#rsync -rP gmi ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_gemini/
|
||||||
|
|
||||||
|
git push origin -o skip-ci
|
||||||
|
git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
|
||||||
artifacts:
|
artifacts:
|
||||||
- tildeweb/tildeweb-prod-build.tar.gz
|
- tildeweb/tildeweb-prod-build.tar.gz
|
Loading…
Reference in a new issue