Merge pull request 'Rework the CI/CD for production' (#31) from 30.rework-for-prod into main
All checks were successful
Jekyll / jekyll (push) Successful in 38s

Reviewed-on: #31
This commit is contained in:
btlogy 2025-08-13 18:31:59 +00:00
commit 57fc413c73
7 changed files with 51 additions and 45 deletions

View file

@ -8,8 +8,9 @@ on:
env:
_UID: 1000
_GID: 1000
WEB_DOMAIN: lafs.eval.latfa.net
WEB_USER: www
WEB_DOMAIN: tahoe-lafs.org
WEB_HOST: webforge.of.tahoe-lafs.org
WEB_USER: bot-www
WEB_DIR: /var/www
jobs:
jekyll:
@ -18,6 +19,7 @@ jobs:
- name: Check out repository
id: checkout
uses: actions/checkout@v4
github-server-url: 'https://forge.of.tahoe-lafs.org/'
- name: Change file ownership
id: file_ownership
run: |
@ -44,10 +46,10 @@ jobs:
- name: Build Jekyll site
id: build_site
run: |
# Overwrite the baseurl for previewonly
if [ "${{ gitea.event_name }}" = 'pull_request' ]; then
echo "Overwriting baseurl for pull_request ${{ gitea.event.pull_request.number }}"
sed -i -r -e 's/^baseurl:\s*"([^"]*)"/baseurl: "\1\/${{ gitea.event.pull_request.number }}"/' _config.yml
# Overwrite the baseurl for preview only
if [ "${{ forge.event_name }}" = 'pull_request' ]; then
echo "Overwriting baseurl for pull_request ${{ forge.event.pull_request.number }}"
sed -i -r -e 's/^baseurl:\s*"([^"]*)"/baseurl: "\1\/${{ forge.event.pull_request.number }}"/' _config.yml
grep "^baseurl:" _config.yml
fi
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
@ -55,17 +57,18 @@ jobs:
- name: Deploy Jekyll site
id: deploy_site
run: |
if [ "${{ gitea.ref }}" = 'refs/heads/main' ]; then
WEB_ROOT="${WEB_DIR}/site"
WEB_HOST="www.${WEB_DOMAIN}"
if [ "${{ forge.ref }}" = 'refs/heads/main' ]; then
WEB_ROOT="${WEB_DIR}/live"
WEB_VHOST="home.of.${WEB_DOMAIN}"
WEB_CONTEXT='/'
else
WEB_ROOT="${WEB_DIR}/preview"
WEB_HOST="preview.${WEB_DOMAIN}"
WEB_CONTEXT='/${{ gitea.event.pull_request.number }}/'
WEB_VHOST="preview.of.${WEB_DOMAIN}"
WEB_CONTEXT='/${{ forge.event.pull_request.number }}/'
fi
# Save those variabes in the environment for the next steps
echo "WEB_HOST=${WEB_HOST}" >> $GITHUB_ENV
echo "WEB_VHOST=${WEB_VHOST}" >> $GITHUB_ENV
echo "WEB_CONTEXT=${WEB_CONTEXT}" >> $GITHUB_ENV
# Prepare ssh key
echo "${{ secrets.WWW_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
@ -73,23 +76,23 @@ jobs:
# Synchronize the local and the remote site
rsync -halvi --delete \
-e "ssh -a -x -o StrictHostKeyChecking=no" \
./_site/ "${WEB_USER}@${WEB_DOMAIN}:${WEB_ROOT}${WEB_CONTEXT}"
./_site/ "${WEB_USER}@${WEB_HOST}:${WEB_ROOT}${WEB_CONTEXT}"
- name: Comment pull request
id: comment_pull_request
if: ${{ always() && gitea.event_name == 'pull_request' }}
uses: exercism/pr-commenter-action@v1.5.1
if: ${{ always() && forge.event_name == 'pull_request' }}
uses: https://github.com/exercism/pr-commenter-action@v1.5.1
with:
template-variables: |
{
"imageOutcome": "${{ steps.build_image.outcome }}",
"buildOutcome": "${{ steps.build_site.outcome }}",
"deployOutcome": "${{ steps.deploy_site.outcome }}",
"deployWebHost": "${{ env.WEB_HOST }}",
"deployWebHost": "${{ env.WEB_VHOST }}",
"deployWebContext": "${{ env.WEB_CONTEXT }}",
"gitActor": "${{ gitea.actor }}",
"gitEventName": "${{ gitea.event_name }}",
"gitWorkflow": "${{ gitea.workflow }}",
"gitRunNumber": "${{ gitea.run_number }}",
"gitRunAttempt": "${{ gitea.run_attempt }}"
"gitActor": "${{ forge.actor }}",
"gitEventName": "${{ forge.event_name }}",
"gitWorkflow": "${{ forge.workflow }}",
"gitRunNumber": "${{ forge.run_number }}",
"gitRunAttempt": "${{ forge.run_attempt }}"
}
config-file: ".gitea/pr-commenter.yml"
config-file: ".forgejo/pr-commenter.yml"

View file

@ -6,10 +6,10 @@ on:
types: [ closed ]
env:
WEB_DOMAIN: lafs.eval.latfa.net
WEB_HOST: webforge.of.tahoe-lafs.org
WEB_USER: www
WEB_ROOT: /var/www/preview
WEB_CONTEXT: "/${{ gitea.event.pull_request.number }}/"
WEB_CONTEXT: "/${{ forge.event.pull_request.number }}/"
jobs:
jekyll_cleanup:
runs-on: ubuntu-22.04
@ -32,4 +32,4 @@ jobs:
chmod 600 ~/.ssh/id_ed25519
# Delete preview context from the remote site
echo -e "set sftp:connect-program ssh -a -x -o StrictHostKeyChecking=no; rm -r -f ${WEB_ROOT}${WEB_CONTEXT}\nbye" \
| lftp sftp://${WEB_USER}:unused@${WEB_DOMAIN}
| lftp sftp://${WEB_USER}:unused@${WEB_HOST}

View file

@ -10,4 +10,4 @@ main:
- title: "About"
url: "#about"
- title: "Fork me"
url: "https://code.lafs.eval.latfa.net/tahoe-lafs/web-landing-page/"
url: "https://forge.of.tahoe-lafs.org/tahoe-lafs/web-landing-page/"

View file

@ -1,14 +1,12 @@
---
layout: single
title: "v1.18.0 is released"
date: 2022-10-03 16:17:57 +0000
excerpt: "ANNOUNCING Tahoe, the Least-Authority File Store, v1.18.0"
title: "v1.20.0 is released"
date: 2024-12-19 05:48:54 +0000
excerpt: "ANNOUNCING Tahoe, the Least-Authority File Store, v1.20.0"
header:
teaser: /assets/images/posts/release.jpg
---
ANNOUNCING Tahoe, the Least-Authority File Store, v1.18.0
The Tahoe-LAFS team is pleased to announce version 1.18.0 of
The Tahoe-LAFS team is pleased to announce version 1.20.0 of
Tahoe-LAFS, an extremely reliable decentralized storage
system. Get it with "pip install tahoe-lafs", or download a
tarball here:
@ -23,15 +21,22 @@ unique security and fault-tolerance properties:
[https://tahoe-lafs.readthedocs.org/en/latest/about.html][about]
The previous stable release of Tahoe-LAFS was v1.17.1, released on
January 7, 2022.
The previous stable release of Tahoe-LAFS was v1.19.0, released on
January 18, 2024. Major new features and changes in this release:
This release drops support for Python 2 and for Python 3.6 and earlier.
twistd.pid is no longer used (in favour of one with pid + process creation time).
A collection of minor bugs and issues were also fixed.
Declarative build system based on "hatch".
The ability to creat mutable directories with a given private-key.
Pulled in fixes from CBOR, stopped using the C version of CBOR and
fixed incompatibilities with attrs and cryptography libraries.
Besides all this there have been dozens of other bug-fixes and
improvements.
Enjoy!
[Read the full announcement][more]
[download]: https://tahoe-lafs.org/downloads
[about]: https://tahoe-lafs.readthedocs.org/en/latest/about.html
[more]: https://lists.tahoe-lafs.org/pipermail/tahoe-dev/2022-October/010043.html
[more]: https://lists.tahoe-lafs.org/pipermail/tahoe-dev/2024-December/010111.html

View file

@ -1,7 +1,7 @@
---
layout: single
title: "New landing page"
date: 2024-05-29 21:47:57 +0200
date: 2025-08-13 18:23:00 +0200
excerpt: "The old Tahoe-LAFS landing page is gone!"
header:
teaser: /assets/images/posts/old-landing-page-teaser.png
@ -9,14 +9,12 @@ gallery:
- image_path: /assets/images/posts/old-landing-page.png
alt: "original"
---
We're happy to announce that the migration of the [original][old] landing page to this one has been completed.
We're happy to announce that the migration from the [trac][old] landing page (see below) to the [jekyll][new] one has been completed.
Help us to contribute to it using this [repository][repo].
Goodbye Trac...
{% include gallery %}
[old]: https://tahoe-lafs.org/trac/tahoe-lafs/wiki/WikiStart
[new]: https://www.lafs.eval.latfa.net/
[repo]: https://code.lafs.eval.latfa.net/tahoe-lafs/web-landing-page/
[new]: https://home.of.tahoe-lafs.org/
[repo]: https://forge.of.tahoe-lafs.org/tahoe-lafs/web-landing-page/

View file

@ -55,8 +55,8 @@ contribute_list:
alt: "issues"
title: "Issues"
excerpt: '<ul>
<li>Visit the <a href="https://code.lafs.eval.latfa.net/tahoe-lafs/trac/issues"><b>issue</b></a> tracker</li>
<li>Register an <a href="https://code.lafs.eval.latfa.net/user/sign_up"><b>account</b></a> to interact</li>
<li>Visit the <a href="https://tahoe-lafs.org/trac/tahoe-lafs"><b>issue</b></a> tracker</li>
<!--<li>Register an <a href="https://forge.of.tahoe-lafs.org/user/sign_up"><b>account</b></a> to interact</li>-->
</ul>'
- image_path: /assets/images/code.svg
alt: "code"