Skip to content

Merge pull request #5 from paulscherrerinstitute/1.8.2 #25

Merge pull request #5 from paulscherrerinstitute/1.8.2

Merge pull request #5 from paulscherrerinstitute/1.8.2 #25

Workflow file for this run

name: be
on:
workflow_dispatch:
inputs:
submodule_commit:
description: 'Commit of the submodule to deploy'
required: false
commit:
description: 'Commit of the CI repo to deploy'
required: false
pull_request:
branches: [ main ]
push:
branches: [ main ]
release:
types: [ published ]
jobs:
set_env:
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.environment.yml@main
with:
commit: ${{ github.event.inputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
check_changed:
needs: set_env
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.changes.yml@main
with:
files: |
.github/workflows/be.yml
helm/configs/backend/${{ needs.set_env.outputs.environment }}/**
helm/configs/backend/values.yaml
scibec/backend/**
commit: ${{ needs.set_env.outputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
submodule: scibec
build_deploy_be:
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'be'
needs:
- check_changed
- set_env
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.build-deploy.yml@bastion_ssh
with:
context: scibec/backend/.
image_name: ${{ github.repository }}/be
release_name: backend
namespace_prefix: bec-
tag: ${{ needs.set_env.outputs.tag }}
environment: ${{ needs.set_env.outputs.environment }}
commit: ${{ needs.set_env.outputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
submodule: scibec
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
JSON_SECRETS: ${{ toJSON(secrets) }}
BASTION_USER: ${{ secrets.BASTION_USER }}
BASTION_SSH_KEY: ${{ secrets.BASTION_SSH_KEY }}