From 87658857335705fd3693eae0cfbd22e6f69f54ec Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Tue, 20 Feb 2024 16:55:10 +0100 Subject: [PATCH 1/2] Ensure databases repositories use correct SSH key --- roles/engine/tasks/database.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/engine/tasks/database.yml b/roles/engine/tasks/database.yml index 33548fd..d9047a3 100644 --- a/roles/engine/tasks/database.yml +++ b/roles/engine/tasks/database.yml @@ -18,6 +18,13 @@ key_file: '/home/{{ ansible_user }}/.ssh/ota-github-bot-key' when: existing_repository.before is defined and not existing_repository.before # if existing_repository.before is null, then the repository is new +- name: Configure {{ engine_database_name }} repository to use the GitHub Bot SSH Key + ansible.builtin.git_config: + name: core.sshCommand + value: ssh -i '/home/{{ ansible_user }}/.ssh/ota-github-bot-key' + scope: local + repo: '{{ engine_database_directory }}' + - name: Remove existing locks in {{ engine_database_name }} ansible.builtin.file: path: '{{ engine_database_directory }}/.git/index.lock' From 3aa6a8eac5e6008d279547e26be549ec5914c915 Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Tue, 20 Feb 2024 16:56:19 +0100 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc92ed..fbf1e9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,15 @@ All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## Unreleased [patch] + +_Full changeset and discussions: [#32](https://github.com/OpenTermsArchive/deployment/pull/32)._ + +> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs. + +### Fixed + +- Ensure snapshots and versions repositories use correct SSH key ## 0.1.0 - 2024-02-20