Skip to content

Commit

Permalink
Add files
Browse files Browse the repository at this point in the history
  • Loading branch information
anhkhoakz committed Jan 22, 2024
1 parent 727e97e commit 240ce0b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Mirroring

on:
push:
delete:

jobs:
to_codeberg:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure 1Password Service Account
uses: 1password/load-secrets-action/configure@v1
with:
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

- name: Load Codeberg credentials
id: load-codeberg-credentials
uses: 1password/load-secrets-action@v1
with:
export-env: false
env:
codeberg_ssh: "op://Security/Codeberg/private key"?ssh-format=openssh

- name: Mirroring to Codeberg
uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: git@codeberg.org:anhkhoakz/pages.git
ssh_private_key: ${{ secrets.codeberg_ssh }}

0 comments on commit 240ce0b

Please sign in to comment.