Container build: add ansible build, add nginx
All checks were successful
/ build (push) Successful in 1m10s
All checks were successful
/ build (push) Successful in 1m10s
This commit is contained in:
parent
ca9fc055fa
commit
d2eb7f7a1d
3 changed files with 99 additions and 1 deletions
33
build.yaml
Normal file
33
build.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
- name: Build containers
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- name: Install dependencies
|
||||
command: pnpm install
|
||||
args:
|
||||
chdir: "{{ playbook_dir }}"
|
||||
|
||||
- name: Build the Angular app
|
||||
command: ng build
|
||||
args:
|
||||
chdir: "{{ playbook_dir }}"
|
||||
|
||||
- name: Get the version from git
|
||||
command: git describe --dirty --tags
|
||||
register: version
|
||||
args:
|
||||
chdir: "{{ playbook_dir }}"
|
||||
|
||||
- name: Build frontend container
|
||||
containers.podman.podman_image:
|
||||
name: "treetrail-frontend:{{ version.stdout }}"
|
||||
state: build
|
||||
path: "{{ playbook_dir }}"
|
||||
build:
|
||||
format: oci
|
||||
force_rm: yes
|
||||
cache: no
|
||||
file: Containerfile
|
||||
#quadlet_options:
|
||||
# - |
|
||||
# [Install]
|
||||
# WantedBy=default.target
|
Loading…
Add table
Add a link
Reference in a new issue