- hosts: all | |
tasks: | |
- name: Install Docker | |
ansible.builtin.include_role: | |
name: ensure-docker | |
- name: Install Rust | |
ansible.builtin.include_role: | |
name: ensure-rust | |
- name: Ensure required packages are installed | |
become: true | |
ansible.builtin.apt: | |
name: ["build-essential"] | |
state: present | |
- name: Run "cargo test" | |
ansible.builtin.command: cargo test --workspace | |
args: | |
chdir: "{{ zuul.project.src_dir }}" | |
environment: | |
REGISTRY: "{{ (zuul.artifacts | default([]) | length > 0) | ternary('harbor.atmosphere.dev/ci', 'harbor.atmosphere.dev/library') }}" | |
TAG: "{{ (zuul.artifacts | default([]) | length > 0) | ternary(zuul.change, zuul.branch.replace('stable/', '')) }}" |