mount
This commit is contained in:
parent
027d1fa5b4
commit
db99d625e9
1 changed files with 13 additions and 3 deletions
16
.github/workflows/weekly-k8s-backup.yml
vendored
16
.github/workflows/weekly-k8s-backup.yml
vendored
|
|
@ -21,13 +21,23 @@ jobs:
|
|||
echo "Listing /k8s_storage:"
|
||||
ls -lah /k8s_storage
|
||||
|
||||
- name: Install AWS CLI (user-local)
|
||||
run: |
|
||||
if ! command -v aws >/dev/null 2>&1; then
|
||||
echo "Installing AWS CLI locally..."
|
||||
curl -s https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip
|
||||
unzip -q awscliv2.zip
|
||||
./aws/install \
|
||||
--install-dir "$HOME/.aws-cli" \
|
||||
--bin-dir "$HOME/bin"
|
||||
echo "$HOME/bin" >> $GITHUB_PATH
|
||||
fi
|
||||
|
||||
- name: Verify AWS identity
|
||||
run: |
|
||||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
||||
unzip awscliv2.zip
|
||||
./aws/install
|
||||
aws sts get-caller-identity
|
||||
|
||||
|
||||
- name: Run backup
|
||||
run: |
|
||||
bash scripts/backup_k8s_storage_to_s3.sh
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue