~wombelix/earth-xlii-cc

0d268c8d3aed2a4e4716c1409d64f26a37a7c48e — Dominik Wombacher 4 months ago a97a0bc
build: Refactoring and comments in build config
1 files changed, 1 insertions(+), 11 deletions(-)

M .build.yml
M .build.yml => .build.yml +1 -11
@@ 19,32 19,22 @@ secrets:
tasks:
  - setup: |
      cd earth-xlii-cc

      python3 -m venv venv
      source venv/bin/activate
      python3 -m pip install --upgrade pip
      python3 -m pip install -r requirements.txt

      # ansible.cfg expects vault password file in same directory
      ln -s ~/.secret_vault .secret_vault

      # Install ansible collections first, otherwise ansible-lint will fail
      # https://github.com/ansible/ansible-lint/issues/3636
      ansible-galaxy collection install -v --pre -r requirements.yml

  - check: |
      cd earth-xlii-cc

      source venv/bin/activate

      set +x
      ansible-lint
      set -x

  - ansible: |
      cd earth-xlii-cc

      source venv/bin/activate

      set +x
      ansible-playbook --vault-password-file ~/.secret_vault site.yml
      set -x