ci(github-actions): 🔧 iron-out deploybot CI stuff [skip ci]

This involves repo synchorizing stuff, among other things

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-05-15 11:22:37 +00:00
parent 4df05ae9c4
commit 258953e465
2 changed files with 37 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy website CI
name: deploybaut
on:
# Runs on pushes targeting the default branch
@ -9,6 +9,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "*/30 */6 * * *"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
@ -23,6 +26,7 @@ concurrency:
jobs:
gh-pages:
if: github.event_name == "push" || "workflow_dispatch"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
@ -53,13 +57,42 @@ jobs:
id: deployment
uses: actions/deploy-pages@v2
repo-sync:
name: Repository sync
runs-on: ubuntu-latest
if: github.event_name == "push" || "workflow_dispatch"
steps:
- name: Checkout repository with full history
uses: actions/checkout@v3
with:
fetch-depth: 0
ssh-key: ${{secrets.MIRRORBOT_CI_SSH_KEY}}
ssh-known-host: |
github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ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zg7QFRQ5CciO783fMPK+K/gDXXAf8=
mau.dev ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICO76F2Bj2b1O3Q7Ln2x94kq6Ai2ev2aOyXur9XgSsM0
git.sr.ht ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZ+l/lvYmaeOAPeijHL8d4794Am0MOvmXPyvHTtrqvgmvCJB8pen/qkQX2S1fgl9VkMGSNxbp7NF7HmKgs5ajTGV9mB5A5zq+161lcp5+f1qmn3Dp1MWKp/AzejWXKW+dwPBd3kkudDBA1fa3uK6g1gK5nLw3qcuv/V4emX9zv3P2ZNlq9XRvBxGY2KzaCyCXVkL48RVTTJJnYbVdRuq8/jQkDRA8lHvGvKI+jqnljmZi2aIrK9OGT2gkCtfyTw2GvNDV6aZ0bEza7nDLU/I+xmByAOO79R1Uk4EYCvSc1WXDZqhiuO2sZRmVxa0pQSBDn1DB3rpvqPYW+UvKB3SOz
git.sr.ht ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCj6y+cJlqK3BHZRLZuM+KP2zGPrh4H66DacfliU1E2DHAd1GGwF4g1jwu3L8gOZUTIvUptqWTkmglpYhFp4Iy4=
git.sr.ht ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60
- name: Setup Git user details
run: |
git config --global user.name "Recap Time Bot"
git config --global user.email "service-accounts+git@recaptime.eu.org"
git config --global user.email "gitops@recaptime.eu.org"
git remote add lab ssh://git@mau.dev/ajhalili2006/tildeverse-web
git remote add hut ssh://git@git.sr.ht/~ajhalili2006/tildeweb
- name: configure ssh
run: |
echo ${{secrets.MIRRORBOT_CI_SSH_KEY}} >> ~/.ssh/ci-passwordless-key
chmod 600 ~/.ssh/ci-passwordless-key
eval $(ssh-agent) && ssh-add ~/.ssh/ci-passwordless-key
- name: sync against github mirror first
run: |
git merge lab/main --ff-only || git rebase lab/main || echo "bailed out due to merge conflicts" && exit 1
git push origin main
- name: mirror
run: |
# only mirror main branch in meanwhile
git push lab main --verbose -o ci.skip
git push hut main --verbose -o skip-ci

View file

@ -16,7 +16,8 @@
"global",
"deps-dev",
"docker",
"scripts"
"scripts",
"github-actions"
],
"conventionalCommits.autoCommit": false,
"conventionalCommits.promptCI": true,