Skip to content

Commit

Permalink
Introduce image namespace (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok authored Sep 10, 2023
1 parent f6ee41f commit 1a7a086
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 25 deletions.
13 changes: 7 additions & 6 deletions .dx/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
organization: smecalculus
project: bezmen

usage: toy
prefs: turing

Expand Down Expand Up @@ -27,16 +30,14 @@ focus: none
binary_repo: local
image_repo: local

image_group: smecalculus

app_images:
foo: "{{ image_repo }}/{{ image_group }}/app-foo"
foo: "{{ image_repo }}/{{ organization }}/{{ project }}/app/foo"

schema_images:
postgres: "{{ image_repo }}/{{ image_group }}/schema-postgres"
postgres: "{{ image_repo }}/{{ organization }}/{{ project }}/schema/postgres"

stack_images:
solution: "{{ image_repo }}/{{ image_group }}/solution-{{ usage }}-{{ prefs }}"
pipeline: "{{ image_repo }}/{{ image_group }}/pipeline-{{ environ }}"
solution: "{{ image_repo }}/{{ organization }}/{{ project }}/stack/solution-{{ usage }}-{{ prefs }}"
pipeline: "{{ image_repo }}/{{ organization }}/{{ project }}/stack/pipeline-{{ environ }}"

docker_entity: "{{ 'image' if image_repo == 'local' else 'manifest' }}"
51 changes: 33 additions & 18 deletions .github/workflows/solution-convincing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# units reporting
- uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
with:
Expand All @@ -54,6 +55,22 @@ jobs:
files: |
libs/*/target/surefire-reports/TEST-*.xml
apps/*/target/surefire-reports/TEST-*.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_UNITS) != '' }}
with:
title: Unit Coverage Report
paths: ${{ env.JACOCO_UNITS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_UNITS: .tools/target/coverage/units/jacoco.xml
- uses: actions/[email protected]
if: ${{ !cancelled() }}
with:
name: units-coverage-report
path: .tools/target/coverage/units
if-no-files-found: ignore
# integrations reporting
- uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
with:
Expand All @@ -67,6 +84,22 @@ jobs:
files: |
libs/*/target/failsafe-reports/TEST-*.xml
apps/*/target/failsafe-reports/TEST-*.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_INTEGRATIONS) != '' }}
with:
title: Integration Coverage Report
paths: ${{ env.JACOCO_INTEGRATIONS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_INTEGRATIONS: .tools/target/coverage/integrations/jacoco.xml
- uses: actions/[email protected]
if: ${{ !cancelled() }}
with:
name: integrations-coverage-report
path: .tools/target/coverage/integrations
if-no-files-found: ignore
# fake e2e reporting
- name: Always empty E2E test report. See https://github.com/orgs/community/discussions/13690
uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
Expand All @@ -79,21 +112,3 @@ jobs:
job_summary: false
comment_mode: off
files: tests/*/target/surefire-reports/TEST-*.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_UNITS) != '' }}
with:
title: Unit Coverage Report
paths: ${{ env.JACOCO_UNITS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_UNITS: .tools/target/coverage/units/jacoco.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_INTEGRATIONS) != '' }}
with:
title: Integration Coverage Report
paths: ${{ env.JACOCO_INTEGRATIONS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_INTEGRATIONS: .tools/target/coverage/integrations/jacoco.xml
2 changes: 1 addition & 1 deletion .github/workflows/solution-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
files: |
libs/*/target/surefire-reports/TEST-*.xml
apps/*/target/surefire-reports/TEST-*.xml
- uses: madrapps/[email protected]
- uses: madrapps/[email protected].1
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_UNITS) != '' }}
with:
title: Unit Coverage Report
Expand Down

0 comments on commit 1a7a086

Please sign in to comment.