Merge pull request #630 from C0nsultant/ansible-CI-stability

Ansible - Improve CI stability
This commit is contained in:
Jonas Winkler 2021-02-25 17:50:40 +01:00 committed by GitHub
commit 91b364f531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -47,7 +47,6 @@ jobs:
molecule converge molecule converge
molecule idempotence molecule idempotence
molecule verify molecule verify
molecule destroy
working-directory: "${{ github.repository }}" working-directory: "${{ github.repository }}"
# # https://galaxy.ansible.com/docs/contributing/importing.html # # https://galaxy.ansible.com/docs/contributing/importing.html
# release: # release:

View File

@ -2,9 +2,15 @@
- name: update previous release to newest release - name: update previous release to newest release
hosts: all hosts: all
tasks: 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 - name: set current github commit as version when available
set_fact: set_fact:
paperlessng_version: "{{ lookup('env', 'GITHUB_SHA') | default('master', True) }}" paperlessng_version: "{{ git_hash.stdout }}"
- name: update to newest paperless-ng release - name: update to newest paperless-ng release
include_role: include_role:
name: ansible name: ansible