OSBS: add a playbook to rebuild the buildroot image
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
612d5c41fa
commit
48fed84ddc
1 changed files with 15 additions and 0 deletions
15
playbooks/groups/osbs/rebuild-osbs-buildroot.yml
Normal file
15
playbooks/groups/osbs/rebuild-osbs-buildroot.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
# This playbook can be used to update to rebuild the buildroot image of
|
||||
# OSBS. This is useful when we want to update some dependencies in the image.
|
||||
|
||||
- name: rebuild the osbs buildroot image.
|
||||
hosts: osbs_nodes:osbs_nodes_stg:osbs_aarch64_nodes_stg
|
||||
gather_facts: false
|
||||
user: root
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Backup the current buildroot
|
||||
command: "docker tag buildroot:latest buildroot:backup"
|
||||
|
||||
- name: rebuild the buildroot container image.
|
||||
command: "docker build /etc/osbs/buildroot -t buildroot --no-cache --pull"
|
Loading…
Add table
Add a link
Reference in a new issue