ci: separate dev deployment, main checks and GitHub mirroring
This commit is contained in:
1 parent
da4b1e3b18
commit
469af15045
20 files changed
+360
-121
No files matched your search
@@ -0,0 +1,35 @@
|
||||
name: GitHub Git mirror
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
tags: ['**']
|
||||
create:
|
||||
delete:
|
||||
schedule:
|
||||
- cron: '17 * * * *'
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
concurrency:
|
||||
group: rawmark-github-mirror
|
||||
cancel-in-progress: false
|
||||
jobs:
|
||||
mirror:
|
||||
if: vars.RAWMARK_MIRROR_ENABLED == 'true'
|
||||
runs-on: docker
|
||||
timeout-minutes: 15
|
||||
container:
|
||||
image: docker:29-cli
|
||||
volumes:
|
||||
- /docker/gitea/mirrors/RawMark:/docker/gitea/mirrors/RawMark
|
||||
steps:
|
||||
- name: Install mirror runtimes
|
||||
run: apk add --no-cache nodejs python3 git git-lfs
|
||||
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||
with:
|
||||
ref: main
|
||||
persist-credentials: false
|
||||
- name: Reconcile current source references
|
||||
env:
|
||||
GITHUB_MIRROR_TOKEN: ${{ secrets.RAWMARK_GITHUB_MIRROR_TOKEN }}
|
||||
run: python3 scripts/mirror.py --directory /docker/gitea/mirrors/RawMark
|
||||
Reference in new issue
Block a user