diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index 05419d5e8..c49ce2abc 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -47,7 +47,6 @@ jobs: molecule converge molecule idempotence molecule verify - molecule destroy working-directory: "${{ github.repository }}" # # https://galaxy.ansible.com/docs/contributing/importing.html # release: diff --git a/ansible/molecule/default/converge.yml b/ansible/molecule/default/converge.yml index 1ae260bac..c70c54d39 100644 --- a/ansible/molecule/default/converge.yml +++ b/ansible/molecule/default/converge.yml @@ -2,9 +2,15 @@ - name: update previous release to newest release hosts: all tasks: + - name: install git dependency + apt: + pkg: git + - name: obtain latest git hash in current tree + command: git rev-parse HEAD + register: git_hash - name: set current github commit as version when available set_fact: - paperlessng_version: "{{ lookup('env', 'GITHUB_SHA') | default('master', True) }}" + paperlessng_version: "{{ git_hash.stdout }}" - name: update to newest paperless-ng release include_role: name: ansible diff --git a/docs/extending.rst b/docs/extending.rst index 860106258..287fb834f 100644 --- a/docs/extending.rst +++ b/docs/extending.rst @@ -25,7 +25,7 @@ This section describes the steps you need to take to start development on paperl * Python 3.6. * All dependencies listed in the :ref:`Bare metal route ` - * redis. You can either install redis or use the included scritps/start-services.sh + * redis. You can either install redis or use the included scripts/start-services.sh to use docker to fire up a redis instance (and some other services such as tika, gotenberg and a postgresql server).