[CHORE] Fix Endpoints & Forgejo Refs
This commit is contained in:
parent
02ebb4634f
commit
2dc6d1bbd1
1 changed files with 8 additions and 8 deletions
16
action.yml
16
action.yml
|
@ -7,7 +7,7 @@ inputs:
|
|||
s3-backup-path:
|
||||
description: "Workspace to setup Oasis"
|
||||
required: false
|
||||
default: backups/gitea-repositories/${{ gitea.repository }}
|
||||
default: backups/forgejo-repositories/${{ forgejo.repository }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
@ -15,20 +15,20 @@ runs:
|
|||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: ${{ gitea.workspace }}/repo
|
||||
path: ${{ forgejo.workspace }}/repo
|
||||
# Load Backup Envars
|
||||
- name: Setup Backup Envars
|
||||
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||
uses: https://forgejo.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||
with:
|
||||
infisical-token: ${{ inputs.infisical-token }}
|
||||
secret-envs: edge
|
||||
secret-paths: /devops/gitea-backups
|
||||
secret-paths: /devops/forgejo-backups
|
||||
# Fix Envar Format
|
||||
- name: Fix Env Format
|
||||
run: |
|
||||
echo BACKUP_S3_ENDPOINT=${{ env.DEVOPS_GITEA_ELYSIUM_ORG_S3_ENDPOINT }} >> $GITHUB_ENV
|
||||
echo BACKUP_S3_KEY_ID=${{ env.DEVOPS_GITEA_ELYSIUM_ORG_S3_KEY_ID }} >> $GITHUB_ENV
|
||||
echo BACKUP_S3_KEY=${{ env.DEVOPS_GITEA_ELYSIUM_ORG_S3_KEY }} >> $GITHUB_ENV
|
||||
echo BACKUP_S3_ENDPOINT=${{ env.DEVOPS_FORGEJO_ELYSIUM_ORG_S3_ENDPOINT }} >> $GITHUB_ENV
|
||||
echo BACKUP_S3_KEY_ID=${{ env.DEVOPS_FORGEJO_ELYSIUM_ORG_S3_KEY_ID }} >> $GITHUB_ENV
|
||||
echo BACKUP_S3_KEY=${{ env.DEVOPS_FORGEJO_ELYSIUM_ORG_S3_KEY }} >> $GITHUB_ENV
|
||||
# Backup Repository
|
||||
- name: S3 Backup
|
||||
uses: peter-evans/s3-backup@v1
|
||||
|
@ -37,6 +37,6 @@ runs:
|
|||
ACCESS_KEY_ID: ${{ env.BACKUP_S3_KEY_ID }}
|
||||
SECRET_ACCESS_KEY: ${{ env.BACKUP_S3_KEY }}
|
||||
MIRROR_TARGET: ${{ inputs.s3-backup-path }}
|
||||
MIRROR_SOURCE: ${{ gitea.workspace }}/repo
|
||||
MIRROR_SOURCE: ${{ forgejo.workspace }}/repo
|
||||
with:
|
||||
args: --overwrite --remove
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue