-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/library binaries publishing (#369)
- Loading branch information
Showing
21 changed files
with
145 additions
and
159 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,13 @@ jobs: | |
docker run --rm | ||
--volume $(pwd):$(pwd) | ||
--volume ~/.m2:/root/.m2 | ||
--env GITHUB_ACTOR=${{ github.actor }} | ||
--env GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
--workdir $(pwd)/baker/ansible | ||
${{ env.IMAGE_NAME }}:${{ matrix.env.dev }} | ||
ansible-playbook binaries.yaml -v | ||
-e devenv=${{ matrix.env.dev }} | ||
-e repo_mode=ro | ||
- uses: mikepenz/[email protected] | ||
if: ${{ !cancelled() && (steps.binaries.outcome == 'success' || steps.binaries.outcome == 'failure') }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,46 @@ | ||
--- | ||
- name: Building and checking | ||
hosts: app | ||
- name: JVM BINARIES | ||
hosts: jvm | ||
tasks: | ||
- ansible.builtin.import_tasks: # noqa: name[missing] | ||
file: tasks/java/check.yaml | ||
- ansible.builtin.import_tasks: # noqa: name[missing] | ||
file: tasks/app/build-and-check.yaml | ||
vars: | ||
maven_phase: package | ||
file: tasks/jvm/check.yaml | ||
- name: Capture CID | ||
ansible.builtin.command: | ||
cmd: git hash-object --stdin | ||
stdin: | | ||
{{ lookup('ansible.builtin.pipe', 'git write-tree --prefix=lib') }} | ||
{{ lookup('ansible.builtin.pipe', 'git write-tree --prefix=app') }} | ||
register: binary_cid | ||
changed_when: false | ||
- name: Build, check, publish | ||
ansible.builtin.command: | ||
cmd: >- | ||
mvn {{ maven_phase | default('package') }} | ||
--activate-profiles {{ devenv }} | ||
--no-snapshot-updates | ||
--batch-mode | ||
--fail-fast | ||
--threads 2 | ||
{% if maven_projects is defined %} | ||
--also-make | ||
--projects {{ maven_projects | map('regex_replace', '^', ':') | join(',') }} | ||
{% else %} | ||
--projects -:e2e | ||
{% endif %} | ||
{% if repo_mode == 'rw' %} | ||
--define revision={{ devenv }}-{{ binary_cid.stdout[:7] }} | ||
{% endif %} | ||
chdir: "{{ project.dir }}" | ||
strip_empty_ends: false | ||
changed_when: true | ||
- name: Coverage | ||
ansible.builtin.command: | ||
cmd: >- | ||
mvn clean | ||
antrun:run@coverage | ||
--no-snapshot-updates | ||
--batch-mode | ||
--projects :tool | ||
chdir: "{{ project.dir }}" | ||
strip_empty_ends: false | ||
changed_when: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
sources: | ||
hosts: | ||
java: | ||
jvm: | ||
ansible: | ||
github: | ||
yaml: | ||
images: | ||
hosts: | ||
db: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.