Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
83e33714cc | |||
e1690e4800 | |||
|
165ec0f818 | ||
0ed8477b5b |
12 changed files with 120 additions and 0 deletions
66
.forgejo/workflows/generate_website.yml
Normal file
66
.forgejo/workflows/generate_website.yml
Normal file
|
@ -0,0 +1,66 @@
|
|||
name: "Generate Databases and Publish to Website (hypatia.services.yayindasin.org)"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-push-prod:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.asandikci.com/docker-images/website_builder:latest # actually no need to new image?
|
||||
steps:
|
||||
- name: Git Clone
|
||||
run: |
|
||||
git clone https://git.asandikci.com/MaintainTeam/HypatiaDatabases.git
|
||||
cd HypatiaDatabases
|
||||
ls -la
|
||||
|
||||
# - name: Generate Databases
|
||||
# run: |
|
||||
# cd scripts
|
||||
# bash generate databases.sh #
|
||||
# NOTE : I generated database files in docker in my computer locally. (Created a maven project and run Main.java)
|
||||
# After I completely understand the scripts and generation process I'll add this steps/files to this repo/CI
|
||||
#
|
||||
# assume this step generates all files to databases/generated/ directory, for now I am using old_generated_files_for_test/ directory, change this later
|
||||
|
||||
- name: Push Databases to "static" branch
|
||||
run: |
|
||||
mkdir static && cd static
|
||||
git clone https://git.asandikci.com/MaintainTeam/HypatiaDatabases.git
|
||||
cd HypatiaDatabases
|
||||
git checkout static
|
||||
rm -rfv ./databases/
|
||||
mkdir databases
|
||||
cp -rfv ../../HypatiaDatabases/production/* ./databases/
|
||||
git config --global user.name "Aliberk Sandıkçı (CI)"
|
||||
git config --global user.email git+ci@asandikci.com
|
||||
git add -A
|
||||
git commit --all --message "Updated Databases! [CI]"
|
||||
git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/MaintainTeam/HypatiaDatabases
|
||||
# is it really safe to pushing inside a CI ???
|
||||
### Hey I don't even give PUSH_KEY variable, how does it push lol ?
|
||||
### FIXME: !!!
|
||||
|
||||
|
||||
publish:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.asandikci.com/docker-images/website_builder:latest # actually no need to new image?
|
||||
steps:
|
||||
- name: Checkout & Deploy
|
||||
run: |
|
||||
git clone https://git.asandikci.com/MaintainTeam/HypatiaDatabases.git
|
||||
cd HypatiaDatabases
|
||||
git checkout static
|
||||
date >> info.txt
|
||||
|
||||
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
|
||||
chmod 0400 ~/.passwd
|
||||
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@hypatia.services.yayindasin.org << !
|
||||
bye
|
||||
!
|
||||
lftp --user ${{ secrets.SFTP_USERNAME }} --password ${{ secrets.SFTP_PASSWORD }} sftp://hypatia.services.yayindasin.org -e "mirror -R --delete . www/"
|
||||
|
||||
## TODO: see https://git.asandikci.com/asandikci.com/web/issues/10 for ftp related ...
|
||||
# CURRENTLY USING PURE STFP FOR AUTH ONLY
|
||||
# TODO: CHANGE THIS
|
20
old_generated_files_for_test/index.html
Normal file
20
old_generated_files_for_test/index.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
|
||||
<!-- Umami | I just use this for counting how many users use this service, you can block analytics.yayindasin.org domain to disable telemetry -->
|
||||
<script defer src="https://analytics.yayindasin.org/script.js"
|
||||
data-website-id="b739a3d8-e258-4474-808e-5451e3d85f42"></script>
|
||||
|
||||
<title>Hypatia Databases</title>
|
||||
</head>
|
||||
<body>
|
||||
Hypatia Databases<br>
|
||||
generated from https://git.asandikci.com/MaintainTeam/HypatiaDatabases , currently testing - not stable !<br>
|
||||
get databases from with this link: https://hypatia.services.yayindasin.org/databases/DATABASE_NAME<br>
|
||||
see /info.txt for generation info<br>
|
||||
</body>
|
14
production/gpg.key
Normal file
14
production/gpg.key
Normal file
|
@ -0,0 +1,14 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mDMEZ5amVRYJKwYBBAHaRw8BAQdA+RGQPbJaNGNafHal5TRzYPOkynWRiKYZEPrA
|
||||
O5DoPkW0TE1haW50YWluVGVhbSAoR1BHIEtleSB0byBTaWduL1ZlcmlmeSBEYXRh
|
||||
YmFzZXMpIDxtYWludGFpbnRlYW1AYXNhbmRpa2NpLmNvbT6ImQQTFgoAQRYhBLJu
|
||||
/I5bDCkq+IKhQVKYwMDD5zKIBQJnlqZVAhsDBQkDwmcABQsJCAcCAiICBhUKCQgL
|
||||
AgQWAgMBAh4HAheAAAoJEFKYwMDD5zKImiAA/jO3oNXi8S6HC151Wpcsjsjbhoza
|
||||
5yOMf020l6f2zhP+AQCnMPC6MGLp1gsH8+pPODXcBZVv/Y5NmRUL8Tj/Aas5Abg4
|
||||
BGeWplUSCisGAQQBl1UBBQEBB0CUw5BfJGBOd1cBWN1Cy9vilL6zbfgabrfwhGlq
|
||||
XiZSNwMBCAeIfgQYFgoAJhYhBLJu/I5bDCkq+IKhQVKYwMDD5zKIBQJnlqZVAhsM
|
||||
BQkDwmcAAAoJEFKYwMDD5zKIu0cA+QGbVgdFY7q983fSTmt2HfHCRBtIavMcfJI4
|
||||
xzvW+Kd6AP4o85uM0BBzpzgTir4LsY0hzOQnxmo8DHbzl6n3im0mBQ==
|
||||
=yeHP
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
BIN
production/hypatia-domains-bloom.bin
Normal file
BIN
production/hypatia-domains-bloom.bin
Normal file
Binary file not shown.
BIN
production/hypatia-domains-bloom.bin.sig
Normal file
BIN
production/hypatia-domains-bloom.bin.sig
Normal file
Binary file not shown.
BIN
production/hypatia-md5-bloom.bin
Normal file
BIN
production/hypatia-md5-bloom.bin
Normal file
Binary file not shown.
BIN
production/hypatia-md5-bloom.bin.sig
Normal file
BIN
production/hypatia-md5-bloom.bin.sig
Normal file
Binary file not shown.
BIN
production/hypatia-sha1-bloom.bin
Normal file
BIN
production/hypatia-sha1-bloom.bin
Normal file
Binary file not shown.
BIN
production/hypatia-sha1-bloom.bin.sig
Normal file
BIN
production/hypatia-sha1-bloom.bin.sig
Normal file
Binary file not shown.
BIN
production/hypatia-sha256-bloom.bin
Normal file
BIN
production/hypatia-sha256-bloom.bin
Normal file
Binary file not shown.
BIN
production/hypatia-sha256-bloom.bin.sig
Normal file
BIN
production/hypatia-sha256-bloom.bin.sig
Normal file
Binary file not shown.
20
production/index.html
Normal file
20
production/index.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
|
||||
<!-- Umami | I just use this for counting how many users use this service, you can block analytics.yayindasin.org domain to disable telemetry -->
|
||||
<script defer src="https://analytics.yayindasin.org/script.js"
|
||||
data-website-id="b739a3d8-e258-4474-808e-5451e3d85f42"></script>
|
||||
|
||||
<title>Hypatia Databases</title>
|
||||
</head>
|
||||
<body>
|
||||
Hypatia Databases<br>
|
||||
generated from https://git.asandikci.com/MaintainTeam/HypatiaDatabases , currently testing - not stable !<br>
|
||||
get databases from with this link: https://hypatia.services.yayindasin.org/databases/DATABASE_NAME<br>
|
||||
see /info.txt for generation info<br>
|
||||
</body>
|
Loading…
Add table
Reference in a new issue