ansible/playbooks/groups/osbs/rebuild-osbs-buildroot.yml
2020-11-23 14:44:41 +00:00

15 lines
544 B
YAML

# 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:osbs_aarch64_nodes
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"