diff --git a/.circleci/config.yml b/.circleci/config.yml index 29bbf63..4c9e1d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 jobs: canary: machine: - image: ubuntu-1604:202007-01 + image: ubuntu-2004:202201-02 working_directory: ~/docker-volume-backup steps: - checkout @@ -19,6 +19,7 @@ jobs: name: Run tests working_directory: ~/docker-volume-backup/test command: | + export GPG_TTY=$(tty) ./test.sh canary build: diff --git a/test/compose/run.sh b/test/compose/run.sh index c1c4ed4..6870086 100755 --- a/test/compose/run.sh +++ b/test/compose/run.sh @@ -32,7 +32,7 @@ docker run --rm -it \ echo "[TEST:PASS] Found relevant files in decrypted and untared remote backups." -echo 1234secret | gpg -d --yes --passphrase-fd 0 ./local/test-hostnametoken.tar.gz.gpg > ./local/decrypted.tar.gz +echo 1234secret | gpg -d --pinentry-mode loopback --yes --passphrase-fd 0 ./local/test-hostnametoken.tar.gz.gpg > ./local/decrypted.tar.gz tar -xf ./local/decrypted.tar.gz -C /tmp && test -f /tmp/backup/app_data/offen.db rm ./local/decrypted.tar.gz test -L /tmp/backup/app_data/db.link