Skip to content

Commit

Permalink
new integrations pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Sep 18, 2024
1 parent d14c3a6 commit 3be4c4e
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 72 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/coordinator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,15 @@ jobs:
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-js
path: frontend/static/frontend/
name: django-main-static
path: frontend

- name: 'Download Basic main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-main-js
path: frontend/static/frontend/

- name: 'Download pro.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-pro-js
path: frontend/static/frontend/

- name: 'Download pro.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-pro-js
path: frontend/static/frontend/
name: django-main-static
path: frontend

- name: 'Log in to Docker Hub'
uses: docker/login-action@v3
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/desktop-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ jobs:
with:
node-version: '16'

- name: Set up frontend dependencies
run: |
cd frontend
npm install
npm run build
- name: 'Download Basic main.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: desktop-main-static
path: desktopApp

- name: 'Download Basic main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: desktop-main-static
path: desktopApp

- name: Install dependencies
run: |
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
export NODE_OPTIONS="--max-old-space-size=4096"
cd frontend
npm run build
- name: 'Archive Web Static Build Results'
- name: 'Archive Django Static Build Results'
uses: actions/upload-artifact@v4
with:
name: web-main-static
name: django-main-static
path: |
frontend/static
frontend/templates/frontend/*.html
Expand All @@ -71,6 +71,13 @@ jobs:
path: |
desktopApp/static
desktopApp/*.html
- name: 'Archive Django Static Build Results'
uses: actions/upload-artifact@v4
with:
name: web-main-static
path: |
web/static
web/*.html
- name: 'Archive Mobile Build Results'
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-static
name: django-main-static
path: frontend

- name: Patch Dockerfile and .env-sample
Expand Down
28 changes: 6 additions & 22 deletions .github/workflows/selfhosted-client-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 'Download basic.selfhosted.js Artifact'
- name: 'Download Basic main.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-js
path: nodeapp/static/frontend/
name: nodeapp-main-static
path: nodeapp

- name: 'Download main.js Artifact for a release'
- name: 'Download Basic main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-main-js
path: nodeapp/static/frontend/

- name: 'Download pro.selfhosted.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-pro-js
path: nodeapp/static/frontend/

- name: 'Download pro.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-pro-js
path: nodeapp/static/frontend/
name: nodeapp-main-static
path: nodeapp

- name: 'Log in to Docker Hub'
uses: docker/login-action@v3
Expand Down
28 changes: 6 additions & 22 deletions .github/workflows/web-client-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 'Download main.js Artifact'
- name: 'Download Basic main.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-js
path: web/static/frontend/
name: web-main-static
path: web

- name: 'Download main.js Artifact for a release'
- name: 'Download Basic main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-main-js
path: web/static/frontend/

- name: 'Download pro.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6
with:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-pro-js
path: web/static/frontend/

- name: 'Download pro.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-pro-js
path: web/static/frontend/
name: web-main-static
path: web

- name: 'Log in to Docker Hub'
uses: docker/login-action@v3
Expand Down

0 comments on commit 3be4c4e

Please sign in to comment.