Skip to content

Commit

Permalink
Build product stack right before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Feb 23, 2024
1 parent 24bf2de commit daab895
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 0 additions & 16 deletions baker/ansible/tasks/product/build.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---
- ansible.builtin.import_role: # noqa: name[missing]
name: image
tasks_from: clean
vars:
image_keys:
- "{{ product.image }}/{{ opsenv }}"

- name: Remove artifacts
ansible.builtin.file:
path: "{{ stack_dir }}/target"
Expand All @@ -32,12 +25,3 @@
lstrip_blocks: yes
trim_blocks: yes
mode: "644"

- ansible.builtin.import_role: # noqa: name[missing]
name: image
tasks_from: build
vars:
image_home: "{{ project.dir }}/stack/product"
image_context: target/image-context
image_key: "{{ product.image }}/{{ opsenv }}"
image_tag: "{{ product.image }}:{{ opsenv }}"
16 changes: 16 additions & 0 deletions baker/ansible/tasks/product/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
---
- ansible.builtin.import_role: # noqa: name[missing]
name: image
tasks_from: clean
vars:
image_keys:
- "{{ product.image }}/{{ opsenv }}"

- ansible.builtin.import_role: # noqa: name[missing]
name: image
tasks_from: build
vars:
image_home: "{{ project.dir }}/stack/product"
image_context: target/image-context
image_key: "{{ product.image }}/{{ opsenv }}"
image_tag: "{{ product.image }}:{{ opsenv }}"

- ansible.builtin.import_role: # noqa: name[missing]
name: image
tasks_from: publish
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<lombok.version>1.18.30</lombok.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<spring.version>6.1.3</spring.version>
<kotlin.version>1.9.22</kotlin.version>
<kotlin.version>1.8.22</kotlin.version>
<jacoco.version>0.8.11</jacoco.version>
<devenv>godel</devenv>
<skipTests>false</skipTests> <!--unit tests & integration tests-->
Expand Down

0 comments on commit daab895

Please sign in to comment.