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:
|
handlers:
|
||||||
- name: buildroot container
|
- name: Remove the previous buildroot image
|
||||||
command: 'docker rmi buildroot; docker build --no-cache --rm -t buildroot /etc/osbs/buildroot/'
|
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
|
- name: restart and reload docker service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue