refactor: replace automated CI backup workflow with manual installation and sync scripts
This commit is contained in:
parent
682c747964
commit
c0c55c7326
3 changed files with 5 additions and 20 deletions
|
|
@ -1,20 +0,0 @@
|
||||||
name: Scheduled S3 Code Backup
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# This cron expression means "At minute 0 past every 3rd hour"
|
|
||||||
- cron: '0 */3 * * *'
|
|
||||||
# It's also helpful to include workflow_dispatch so you can trigger it manually if needed
|
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
|
||||||
backup-code:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: node:22
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Install AWS CLI
|
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y awscli
|
|
||||||
- name: Sync entire repository to S3 Backup Bucket
|
|
||||||
run: |
|
|
||||||
aws s3 sync . s3://forgeocodespace --delete
|
|
||||||
4
installation.sh
Normal file
4
installation.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
|
||||||
|
sudo apt install -y unzip
|
||||||
|
unzip -o awscliv2.zip
|
||||||
|
sudo ./aws/install --update
|
||||||
1
syncscript.sh
Normal file
1
syncscript.sh
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
sudo aws s3 sync /var/lib/docker/volumes/forgeo_forgejo-data/_data/git/repositories/vignesh s3://forgeocodespace --delete --region ap-south-2
|
||||||
Loading…
Reference in a new issue