Compare commits

...
Sign in to create a new pull request.

21 commits

Author SHA1 Message Date
bf54b80924 [CHORE] Adjust Actions 2024-08-25 16:36:30 -06:00
b8805d941b [CHORE] Adjust Actions 2024-08-25 16:35:42 -06:00
f3acd807bf [CHORE] Adjust Actions 2024-08-25 16:34:47 -06:00
181c35fac5 [CHORE] Adjust Actions 2024-08-25 16:33:09 -06:00
f4f89dad0d [CHORE] Adjust Action Trigger 2024-08-24 22:23:09 -06:00
f0038b6b69 [CHORE] Adjust Action Trigger 2024-08-24 22:17:52 -06:00
962ca38ff9 [CHORE] Adjust Action Trigger 2024-08-24 22:16:52 -06:00
ba73b418a8 [CHORE] Adjust Action Trigger 2024-08-24 22:15:51 -06:00
30096f817f [CHORE] Adjust Actions 2024-08-24 22:09:52 -06:00
bb8787fded [CHORE] Adjust Actions 2024-08-24 22:07:54 -06:00
1e3c32b3e7 [CHORE] Adjust Actions 2024-08-24 22:06:12 -06:00
75bd9ebc6d [CHORE] Adjust Actions 2024-08-24 22:02:57 -06:00
8fd38af4f8 [CHORE] Adjust Actions 2024-08-24 21:58:18 -06:00
8646f62cbe [CHORE] Adjust Actions 2024-08-24 21:56:30 -06:00
41d4305f3a [CHORE] Fix Endpoints & Forgejo Refs 2024-08-24 21:50:30 -06:00
2dc6d1bbd1 [CHORE] Fix Endpoints & Forgejo Refs 2024-08-24 21:47:25 -06:00
02ebb4634f [DOC] Normalized comments 2024-02-15 19:26:49 -07:00
4d55f5c1e7 [FIX] S3 Fix 2024-02-15 19:25:45 -07:00
7b513727bb [FEATURE] S3 Fix 2024-02-15 19:24:18 -07:00
26eff76d90 [FEATURE] Initial S3 Concept 2024-02-15 19:09:47 -07:00
881621c35c [FEATURE] S3 Action 2024-02-13 16:49:46 -07:00

46
action.yml Normal file
View file

@ -0,0 +1,46 @@
name: "S3 Backup Action"
description: "Backup to S3 Bucket"
inputs:
infisical-token:
description: Infisical token for backup envars
required: true
infisical-project:
description: Infisical Project
required: true
s3-backup-path:
description: "Workspace to setup Oasis"
required: false
default: backups/forgejo-repositories/${{ gitea.repository }}
runs:
using: "composite"
steps:
# Checkout Repository
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: repo
# Load Backup Envars
- name: Setup Backup Envars
uses: https://forgejo.dunemask.dev/elysium/elysium-actions@infisical-env
with:
infisical-token: ${{ inputs.infisical-token }}
project-id: ${{ inputs.infisical-project }}
secret-envs: edge
secret-paths: /devops/forgejo-backups
# Fix Envar Format
- name: Fix Env Format
run: |
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: https://github.com/peter-evans/s3-backup@v1
env:
STORAGE_SERVICE_URL: ${{ env.BACKUP_S3_ENDPOINT }}
ACCESS_KEY_ID: ${{ env.BACKUP_S3_KEY_ID }}
SECRET_ACCESS_KEY: ${{ env.BACKUP_S3_KEY }}
MIRROR_TARGET: ${{ inputs.s3-backup-path }}
MIRROR_SOURCE: repo
with:
args: --overwrite --remove