new integrations pipelines

This commit is contained in:
koalasat 2024-09-18 09:31:51 +02:00
parent d14c3a6f73
commit 3be4c4e757
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
6 changed files with 41 additions and 72 deletions

View File

@ -21,31 +21,15 @@ jobs:
with: with:
workflow: frontend-build.yml workflow: frontend-build.yml
workflow_conclusion: success workflow_conclusion: success
name: web-main-js name: django-main-static
path: frontend/static/frontend/ path: frontend
- name: 'Download Basic 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 if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: web-main-js name: django-main-static
path: frontend/static/frontend/ path: 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: 'Log in to Docker Hub' - name: 'Log in to Docker Hub'
uses: docker/login-action@v3 uses: docker/login-action@v3

View File

@ -27,11 +27,21 @@ jobs:
with: with:
node-version: '16' node-version: '16'
- name: Set up frontend dependencies - name: 'Download Basic main.js Artifact'
run: | if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
cd frontend uses: dawidd6/action-download-artifact@v6
npm install with:
npm run build 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 - name: Install dependencies
run: | run: |

View File

@ -50,10 +50,10 @@ jobs:
export NODE_OPTIONS="--max-old-space-size=4096" export NODE_OPTIONS="--max-old-space-size=4096"
cd frontend cd frontend
npm run build npm run build
- name: 'Archive Web Static Build Results' - name: 'Archive Django Static Build Results'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: web-main-static name: django-main-static
path: | path: |
frontend/static frontend/static
frontend/templates/frontend/*.html frontend/templates/frontend/*.html
@ -71,6 +71,13 @@ jobs:
path: | path: |
desktopApp/static desktopApp/static
desktopApp/*.html 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' - name: 'Archive Mobile Build Results'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -35,7 +35,7 @@ jobs:
with: with:
workflow: frontend-build.yml workflow: frontend-build.yml
workflow_conclusion: success workflow_conclusion: success
name: web-main-static name: django-main-static
path: frontend path: frontend
- name: Patch Dockerfile and .env-sample - name: Patch Dockerfile and .env-sample

View File

@ -21,37 +21,21 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - 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 if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: frontend-build.yml workflow: frontend-build.yml
workflow_conclusion: success workflow_conclusion: success
name: web-main-js name: nodeapp-main-static
path: nodeapp/static/frontend/ 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 if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: web-main-js name: nodeapp-main-static
path: nodeapp/static/frontend/ path: nodeapp
- 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: 'Log in to Docker Hub' - name: 'Log in to Docker Hub'
uses: docker/login-action@v3 uses: docker/login-action@v3

View File

@ -21,37 +21,21 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - 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 if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
uses: dawidd6/action-download-artifact@v6 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: frontend-build.yml workflow: frontend-build.yml
workflow_conclusion: success workflow_conclusion: success
name: web-main-js name: web-main-static
path: web/static/frontend/ 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 if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: web-main-js name: web-main-static
path: web/static/frontend/ path: web
- 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: 'Log in to Docker Hub' - name: 'Log in to Docker Hub'
uses: docker/login-action@v3 uses: docker/login-action@v3