Skip to content

be-v0.1.6

be-v0.1.6 #76

Workflow file for this run

name: scicat-pss
on:
workflow_dispatch:
paths:
- .github/workflows/scicat-pss.yml
- helm/configs/pss/**
pull_request:
branches: [ main ]
paths:
- .github/workflows/scicat-pss.yml
- helm/configs/pss/**
push:
branches: [ main ]
paths:
- .github/workflows/scicat-pss.yml
- helm/configs/pss/**
release:
types: [published]
jobs:
set_env:
uses: ./.github/workflows/reusable.environment.yml
deploy:
if: (!needs.set_env.outputs.component) || needs.set_env.outputs.component == 'ps'
runs-on: ubuntu-latest
environment: ${{ needs.set_env.outputs.environment }}
needs:
- set_env
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Open ssh tunnel
uses: paulscherrerinstitute/scicat-ci/.github/actions/open-ssh-tunnel@main
with:
bastion_user: '${{ secrets.BASTION_USER }}'
bastion_ssh_key: '${{ secrets.BASTION_SSH_KEY }}'
- name: deploy
uses: paulscherrerinstitute/scicat-ci/.github/actions/deploy-helm@main
with:
release: '${{ env.RELEASE_NAME }}'
namespace: '${{ env.NAMESPACE_PREFIX }}${{ env.ENVIRONMENT }}'
chart: helm/charts/generic_service
values: "db=${{ env.RELEASE_NAME }}-${{ env.ENVIRONMENT }}"
value-files: helm/configs/${{ env.RELEASE_NAME }}/values.yaml
secrets: ${{ toJSON(secrets) }}
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
RELEASE_NAME: pss
ENVIRONMENT: '${{ needs.set_env.outputs.environment }}'
NAMESPACE_PREFIX: scicat-