Use BACKUP_WORKFLOW variable to determine what to do.
This commit is contained in:
parent
2476a29ce1
commit
2cf10f848d
@ -6,4 +6,4 @@ SCRIPTPATH=$(dirname $SCRIPT)
|
||||
|
||||
cd $SCRIPTPATH
|
||||
USER=$(whoami)
|
||||
sudo -E docker run --net=host --rm -e KEY -e DOC_KEY -e SECRETS_ARCHIVE_PASSPHRASE -e DUPLICITY_PASSPHRASE -e SCRIPT -v $SCRIPTPATH:/root/duplicity_playbooks -i ansible /root/duplicity_playbooks/script.sh
|
||||
sudo -E docker run --net=host --rm -e KEY -e DOC_KEY -e SECRETS_ARCHIVE_PASSPHRASE -e DUPLICITY_PASSPHRASE -e BACKUP_WORKFLOW -v $SCRIPTPATH:/root/duplicity_playbooks -i ansible /root/duplicity_playbooks/script.sh
|
||||
|
@ -230,7 +230,7 @@
|
||||
image: "duplicity:{{ tag }}"
|
||||
entrypoint:
|
||||
- "ansible-playbook"
|
||||
- "/root/duplicity_playbooks/gen_bootstrap.yml"
|
||||
- "/root/duplicity_playbooks/{{ lookup('env','BACKUP_WORKFLOW') }}.yml"
|
||||
output_logs: true
|
||||
detach: false
|
||||
network_mode: host
|
||||
|
@ -31,6 +31,7 @@ PLAYBOOK_REQUIRED_ENV_VARS:
|
||||
- DOC_KEY
|
||||
- SECRETS_ARCHIVE_PASSPHRASE
|
||||
- DUPLICITY_PASSPHRASE
|
||||
- BACKUP_WORKFLOW
|
||||
|
||||
DUPLICITY_ENVIRONMENT:
|
||||
SWIFT_AUTHURL: "{{ lookup('env','OS_AUTH_URL') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user