Initial commit

This commit is contained in:
phil 2024-11-02 03:56:53 +01:00
commit e65b334271
4 changed files with 76 additions and 0 deletions

43
build_generic_images.yaml Normal file
View file

@ -0,0 +1,43 @@
- name: Build generic containers - base python and ci
hosts: localhost
gather_facts: false
vars:
force: false
force_rm: false
cache: false
registry: tiptop:5000
tasks:
- name: Using the variables
ansible.builtin.debug:
var: force_rm
- name: Build the base image
containers.podman.podman_image:
name: trixie_python
state: build
path: "{{ playbook_dir }}"
tag: 1
build:
format: oci
force_rm: "{{ force_rm }}"
cache: "{{ cache }}"
file: Containerfile.trixie_python
push: true
push_args:
dest: "{{ registry }}/trixie_python"
- name: Build the image for ci
containers.podman.podman_image:
name: python-ci
state: build
path: "{{ playbook_dir }}"
tag: 1
build:
format: oci
force_rm: "{{ force_rm }}"
cache: "{{ cache }}"
file: Containerfile.ci
push: true
push_args:
dest: "{{ registry }}/python-ci"