mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-06 01:35:45 +03:00
feat(ansible): playbooks to build and clone projects (#13)
This commit is contained in:
parent
bc75217fb1
commit
2874825341
4 changed files with 39 additions and 0 deletions
17
ansible/playbooks/project_build.yml
Normal file
17
ansible/playbooks/project_build.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Build project
|
||||
hosts: host.ublue.local
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Build and push an image to registry
|
||||
containers.podman.podman_image:
|
||||
name: bluefin
|
||||
tag: latest
|
||||
path: "{{ forge_git_repository_destination }}"
|
||||
build:
|
||||
file: Containerfile
|
||||
format: oci
|
||||
pull: false
|
||||
push: true
|
||||
push_args:
|
||||
dest: "{{ forge_registry_url }}"
|
10
ansible/playbooks/project_clone.yml
Normal file
10
ansible/playbooks/project_clone.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- name: Clone project
|
||||
hosts: host.ublue.local
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Clone project
|
||||
ansible.builtin.git:
|
||||
repo: "{{ forge_git_repository_url }}"
|
||||
dest: "{{ forge_git_repository_destination }}"
|
||||
version: "{{ forge_git_repository_version }}"
|
Loading…
Add table
Add a link
Reference in a new issue