Skip to content

Remove macosX64 target as it's causing problems with IDEA 2024.1+ (… #1927

Remove macosX64 target as it's causing problems with IDEA 2024.1+ (…

Remove macosX64 target as it's causing problems with IDEA 2024.1+ (… #1927

Workflow file for this run

name: Build and push Docker images
on:
push:
branches:
- 'master'
tags:
- 'v*'
workflow_dispatch:
inputs:
branch:
type: string
default: master
description: Branch to build images from
required: false
gateway:
type: boolean
default: true
description: Build new image of api-gateway
required: false
backend:
type: boolean
default: true
description: Build new image of save-backend
required: false
frontend:
type: boolean
default: true
description: Build new image of save-frontend
required: false
cosv-frontend:
type: boolean
default: true
description: Build new image of save-cosv-frontend
required: false
orchestrator:
type: boolean
default: true
description: Build new image of save-orchestrator
required: false
sandbox:
type: boolean
default: true
description: Build new image of save-sandbox
required: false
preprocessor:
type: boolean
default: true
description: Build new image of save-preprocessor
required: false
demo:
type: boolean
default: true
description: Build new image of save-demo
required: false
demo-cpg:
type: boolean
default: true
description: Build new image of save-demo-cpg
required: false
jobs:
build_cli:
name: Build save-cli
uses: ./.github/workflows/build_save-cli_reusable.yml
build_agents:
name: Build save-agent and save-demo-agent
uses: ./.github/workflows/build_save-agent_reusable.yml
with:
branch: ${{ inputs.branch }}
build-save-agent: ${{ github.event_name != 'workflow_dispatch' || inputs.backend || inputs.sandbox }}
build-save-demo-agent: ${{ github.event_name != 'workflow_dispatch' || inputs.demo }}
deploy_backend:
name: save-backend
uses: ./.github/workflows/deploy_images_reusable.yml
needs: [ build_cli, build_agents ]
with:
module: save-backend
branch: ${{ inputs.branch }}
do-build: ${{ github.event_name != 'workflow_dispatch' || inputs.backend }}
override-docker-tag: ${{ github.event_name == 'workflow_dispatch' }}
save-cli-version: ${{ needs.build_cli.outputs.version }}
deploy_sandbox:
name: save-sandbox
uses: ./.github/workflows/deploy_images_reusable.yml
needs: [ build_cli, build_agents ]
with:
module: save-sandbox
branch: ${{ inputs.branch }}
do-build: ${{ github.event_name != 'workflow_dispatch' || inputs.sandbox }}
override-docker-tag: ${{ github.event_name == 'workflow_dispatch' }}
save-cli-version: ${{ needs.build_cli.outputs.version }}
deploy_demo:
name: save-demo
uses: ./.github/workflows/deploy_images_reusable.yml
needs: build_agents
with:
module: save-demo
branch: ${{ inputs.branch }}
do-build: ${{ github.event_name != 'workflow_dispatch' || inputs.demo }}
override-docker-tag: ${{ github.event_name == 'workflow_dispatch' }}
save-cli-version: stub
deploy_all:
name: all excluding save-backend, save-sandbox and save-demo
strategy:
fail-fast: false
matrix:
module: [
'api-gateway',
'save-frontend',
'save-cosv-frontend',
'save-orchestrator',
'save-preprocessor',
'save-demo-cpg',
]
include:
- module: api-gateway
do-build: ${{ inputs.gateway }}
- module: save-frontend
do-build: ${{ inputs.frontend }}
- module: save-cosv-frontend
do-build: ${{ inputs.cosv-frontend }}
- module: save-orchestrator
do-build: ${{ inputs.orchestrator }}
- module: save-preprocessor
do-build: ${{ inputs.preprocessor }}
- module: save-demo-cpg
do-build: ${{ inputs.demo-cpg }}
uses: ./.github/workflows/deploy_images_reusable.yml
with:
module: ${{ matrix.module }}
branch: ${{ inputs.branch }}
do-build: ${{ github.event_name != 'workflow_dispatch' || matrix.do-build }}
override-docker-tag: ${{ github.event_name == 'workflow_dispatch' }}
save-cli-version: stub