test volume mount
continuous-integration/drone/push Build is passing Details

main
ronnic 2 years ago
parent 48bd67da9f
commit 93e2962e3e

@ -15,7 +15,6 @@ steps:
for dir in vaultwarden homebox koillection Homepage mealie; do for dir in vaultwarden homebox koillection Homepage mealie; do
tar cvf - /backup/$dir | openssl enc -aes-256-cbc -salt -out "/backup/${dir}_backup.tar.enc" -k $ENCRYPTION_KEY tar cvf - /backup/$dir | openssl enc -aes-256-cbc -salt -out "/backup/${dir}_backup.tar.enc" -k $ENCRYPTION_KEY
done done
- ls -lah /backup # List after
volumes: volumes:
- name: config_volumes - name: config_volumes
path: /backup path: /backup
@ -23,6 +22,15 @@ steps:
ENCRYPTION_KEY: ENCRYPTION_KEY:
from_secret: encryption_key from_secret: encryption_key
- name: test-volume-mount
image: alpine
commands:
- ls -lah /backup || echo "Backup directory is not accessible"
- touch /backup/test-file.txt || echo "Cannot write to backup directory"
volumes:
- name: config_volumes
path: /backup
- name: upload to s3 - name: upload to s3
image: amazon/aws-cli image: amazon/aws-cli
commands: commands:

Loading…
Cancel
Save