Skip to content

Commit

Permalink
Alter compile to build (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok authored Sep 9, 2023
1 parent 7e8b1fe commit ef9070c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .dx/stacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
run_once: true
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
file: tasks/solution/compile.yml
tags: [compile]
file: tasks/solution/build.yml
tags: [build]
when: >
hostvars.solution.stack_status is changed or
hostvars.pipeline.stack_status is changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
state: directory
recurse: true

- name: Compile spec
- name: Build spec
ansible.builtin.command:
cmd: >
docker compose
Expand All @@ -29,7 +29,7 @@
FOO_IMAGE: "{{ app_images.foo }}"
changed_when: true

- name: Compile conf
- name: Build conf
ansible.builtin.command:
cmd: cp basis/{{ prefs }}.conf target/context/bezmen.conf
chdir: "{{ playbook_dir }}/../solutions"
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/solution-beyond-doubt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

images:
binaries-and-images:
name: Binaries & Images
timeout-minutes: 10
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
libs/*/target/failsafe-reports/TEST-*.xml
apps/*/target/failsafe-reports/TEST-*.xml
solution-compiling:
name: Solution compiling
stack-building:
name: Stack building
timeout-minutes: 5
needs: [sources, images]
needs: [sources, binaries-and-images]
strategy:
fail-fast: false
matrix:
Expand All @@ -94,7 +94,7 @@ jobs:
tools: python docker
token: ${{ secrets.GITHUB_TOKEN }}
- run: >
ansible-playbook stacks.yml -t compile
ansible-playbook stacks.yml -t build
-e image_repo=${{ env.IMAGE_REPO }}
-e usage=${{ matrix.usage }}
-e prefs=${{ matrix.prefs }}
Expand All @@ -105,10 +105,10 @@ jobs:
path: solutions/target/context
if-no-files-found: ignore

solution-testing:
name: Solution testing
stack-testing:
name: Stack testing
timeout-minutes: 15
needs: [solution-compiling]
needs: [stack-building]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -146,10 +146,10 @@ jobs:
path: tests/e2e/target/surefire-reports/*.xml
if-no-files-found: ignore

solution-packaging:
name: Solution packaging
stack-packaging:
name: Stack packaging
timeout-minutes: 5
needs: [solution-testing]
needs: [stack-testing]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -177,10 +177,10 @@ jobs:
-e prefs=${{ matrix.prefs }}
working-directory: .dx
solution-reporting:
name: Solution reporting
stack-reporting:
name: Stack reporting
timeout-minutes: 5
needs: [solution-packaging]
needs: [stack-packaging]
runs-on: ubuntu-22.04
permissions:
checks: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/solution-convincing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- feature/**
- bugfix/**
- chore/**
pull_request:
branches:
- main
Expand Down

0 comments on commit ef9070c

Please sign in to comment.