Use docker_image module instead of command
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
b23be38477
commit
dd203403db
1 changed files with 10 additions and 2 deletions
|
@ -711,8 +711,16 @@
|
|||
|
||||
|
||||
handlers:
|
||||
- name: buildroot container
|
||||
command: 'docker rmi buildroot; docker build --no-cache --rm -t buildroot /etc/osbs/buildroot/'
|
||||
- name: Remove the previous buildroot image
|
||||
docker_image:
|
||||
state: absent
|
||||
name: buildroot
|
||||
|
||||
- name: Build the new buildroot container
|
||||
docker_image:
|
||||
path: /etc/osbs/buildroot/
|
||||
name: buildroot
|
||||
nocache: yes
|
||||
|
||||
- name: restart and reload docker service
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue