mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
ci: Mirror to ghcr
This commit is contained in:
@@ -43,6 +43,9 @@ creds:
|
|||||||
- registry: git.nexy7574.co.uk
|
- registry: git.nexy7574.co.uk
|
||||||
user: "{{env \"N7574_GIT_USERNAME\"}}"
|
user: "{{env \"N7574_GIT_USERNAME\"}}"
|
||||||
pass: "{{env \"N7574_GIT_TOKEN\"}}"
|
pass: "{{env \"N7574_GIT_TOKEN\"}}"
|
||||||
|
- registry: ghcr.io
|
||||||
|
user: "{{env \"GITHUB_USERNAME\"}}"
|
||||||
|
pass: "{{env \"GITHUB_TOKEN\"}}"
|
||||||
|
|
||||||
# Global defaults
|
# Global defaults
|
||||||
defaults:
|
defaults:
|
||||||
@@ -58,5 +61,6 @@ sync:
|
|||||||
<<: *tags-main
|
<<: *tags-main
|
||||||
- source: *source
|
- source: *source
|
||||||
target: git.nexy7574.co.uk/mirrored/continuwuity
|
target: git.nexy7574.co.uk/mirrored/continuwuity
|
||||||
|
target: ghcr.io/continuwuity/continuwuity
|
||||||
type: repository
|
type: repository
|
||||||
<<: *tags-main
|
<<: *tags-main
|
||||||
|
|||||||
@@ -32,6 +32,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
- uses: https://github.com/actions/create-github-app-token@v2
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.GH_APP_ID }}
|
||||||
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
|
github-api-url: https://api.github.com
|
||||||
|
owner: continuwuity
|
||||||
|
repositories: continuwuity
|
||||||
|
|
||||||
- name: Install regctl
|
- name: Install regctl
|
||||||
uses: https://forgejo.ellis.link/continuwuation/regclient-actions/regctl-installer@main
|
uses: https://forgejo.ellis.link/continuwuation/regclient-actions/regctl-installer@main
|
||||||
with:
|
with:
|
||||||
@@ -44,6 +53,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Mirror images
|
- name: Mirror images
|
||||||
if: ${{ !inputs.dry_run }}
|
if: ${{ !inputs.dry_run }}
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
GH_USERNAME: ${{ vars.GH_APP_ID }}
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
echo "Starting image mirroring..."
|
echo "Starting image mirroring..."
|
||||||
regsync once -c .forgejo/regsync/regsync.yml -v info
|
regsync once -c .forgejo/regsync/regsync.yml -v info
|
||||||
|
|||||||
Reference in New Issue
Block a user