From a85911107870b89e82b5d8f1e31be69154830c81 Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Tue, 9 Apr 2024 14:57:50 -0700 Subject: [PATCH] fix: add datacite secrets to build workflow --- base.yml | 3 +++ deploy/conf/.env.template | 3 +++ django/requirements.txt | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/base.yml b/base.yml index 9708e9c7a..eb79e806c 100644 --- a/base.yml +++ b/base.yml @@ -59,6 +59,7 @@ services: build: django image: comses/server secrets: + - datacite_api_password - db_password - discourse_api_key - discourse_sso_secret @@ -84,6 +85,8 @@ services: - ./.env secrets: + datacite_api_password: + file: ./build/secrets/datacite_api_password db_password: file: ./build/secrets/db_password discourse_api_key: diff --git a/deploy/conf/.env.template b/deploy/conf/.env.template index e0d17ac44..3e82dc977 100644 --- a/deploy/conf/.env.template +++ b/deploy/conf/.env.template @@ -34,6 +34,9 @@ SENTRY_DSN= GITHUB_CLIENT_ID= ORCID_CLIENT_ID= +# datacite api settings +DATACITE_API_USERNAME= + # test TEST_USER_ID=10000000 TEST_USERNAME=__test_user__ diff --git a/django/requirements.txt b/django/requirements.txt index f2e29b409..0643502ea 100644 --- a/django/requirements.txt +++ b/django/requirements.txt @@ -1,6 +1,6 @@ bagit==1.8.1 bleach==6.1.0 -datacite==1.1.3 +datacite==1.1.4 dedupe==2.0.23 django-allauth==0.61.1 django-anymail[mailgun]==10.2