Skip to content

Commit

Permalink
Merge pull request #743 from dev-sec/docker_rm
Browse files Browse the repository at this point in the history
Remove Docker containers on self-hosted runner after tests
  • Loading branch information
schurzi committed Feb 4, 2024
2 parents 5bf1993 + 11cf72b commit 9865223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion molecule/os_hardening_vm/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

- name: Execute cinc-auditor tests
ansible.builtin.command: >
docker run
docker run --rm
--volume {{ molecule_ephemeral_directory }}:{{ molecule_ephemeral_directory }}
docker.io/cincproject/auditor exec
--ssh-config-file={{ molecule_ephemeral_directory }}/ssh-config
Expand Down
2 changes: 1 addition & 1 deletion molecule/ssh_hardening_bsd/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

- name: Execute cinc-auditor tests
ansible.builtin.command: >
docker run
docker run --rm
--volume {{ molecule_ephemeral_directory }}:{{ molecule_ephemeral_directory }}
--volume ./waivers_{{ lookup('env', 'MOLECULE_DISTRO') }}.yaml:/waivers.yaml
docker.io/cincproject/auditor exec
Expand Down

0 comments on commit 9865223

Please sign in to comment.