upload to s3
continuous-integration/drone/push Build is failing Details

main
ronnic 2 years ago
parent 05a6546d4e
commit b8976ce329

@ -25,13 +25,13 @@ steps:
- name: upload to s3
image: amazon/aws-cli
commands:
- pwd
- ls -lah /
- ls -lah /backup || echo "Backup directory is not available"
- find /backup -name "*.tar.enc" | while read file; do
- |
find /backup -name "*.tar.enc" | while read file; do
aws s3 cp "${file}" "s3://ronnic-backup/${file#/backup/}";
done
volumes:
- name: config_volumes
path: /backup
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id

Loading…
Cancel
Save