-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up bastion tunnel for scicat services
- Loading branch information
Showing
13 changed files
with
98 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,59 @@ | ||
name: scicat-be-next | ||
# name: scicat-be-next | ||
|
||
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 ] | ||
# 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: | ||
# jobs: | ||
|
||
set_env: | ||
uses: ./.github/workflows/reusable.environment.yml | ||
with: | ||
commit: ${{ github.event.inputs.commit }} | ||
submodule_commit: ${{ github.event.inputs.submodule_commit }} | ||
# set_env: | ||
# uses: ./.github/workflows/reusable.environment.yml | ||
# with: | ||
# commit: ${{ github.event.inputs.commit }} | ||
# submodule_commit: ${{ github.event.inputs.submodule_commit }} | ||
|
||
check_changed: | ||
needs: set_env | ||
uses: ./.github/workflows/reusable.changes.yml | ||
with: | ||
files: | | ||
.github/workflows/scicat-be-next.yml | ||
helm/configs/backend-next/${{ needs.set_env.outputs.environment }}/** | ||
helm/configs/backend-next/values.yaml | ||
scicat-backend-next/** | ||
commit: ${{ needs.set_env.outputs.commit }} | ||
submodule_commit: ${{ github.event.inputs.submodule_commit }} | ||
submodule: scicat-backend-next | ||
# check_changed: | ||
# needs: set_env | ||
# uses: ./.github/workflows/reusable.changes.yml | ||
# with: | ||
# files: | | ||
# .github/workflows/scicat-be-next.yml | ||
# helm/configs/backend-next/${{ needs.set_env.outputs.environment }}/** | ||
# helm/configs/backend-next/values.yaml | ||
# scicat-backend-next/** | ||
# commit: ${{ needs.set_env.outputs.commit }} | ||
# submodule_commit: ${{ github.event.inputs.submodule_commit }} | ||
# submodule: scicat-backend-next | ||
|
||
build_deploy_scicat_backend_next: | ||
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'bn' | ||
needs: | ||
- check_changed | ||
- set_env | ||
uses: ./.github/workflows/reusable.build-deploy.yml | ||
with: | ||
context: scicat-backend-next/. | ||
image_name: ${{ github.repository }}/backend-next | ||
release_name: backend-next | ||
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: scicat-backend-next | ||
secrets: | ||
KUBECONFIG: ${{ secrets.KUBECONFIG }} | ||
JSON_SECRETS: ${{ toJSON(secrets) }} | ||
# build_deploy_scicat_backend_next: | ||
# if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'bn' | ||
# needs: | ||
# - check_changed | ||
# - set_env | ||
# uses: ./.github/workflows/reusable.build-deploy.yml | ||
# with: | ||
# context: scicat-backend-next/. | ||
# image_name: ${{ github.repository }}/backend-next | ||
# release_name: backend-next | ||
# 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: scicat-backend-next | ||
# secrets: | ||
# KUBECONFIG: ${{ secrets.KUBECONFIG }} | ||
# JSON_SECRETS: ${{ toJSON(secrets) }} | ||
# BASTION_USER: ${{ secrets.BASTION_USER }} | ||
# BASTION_SSH_KEY: ${{ secrets.BASTION_SSH_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "proposals" | ||
version = "0.1.0" | ||
description = "A microservice for syncing proposals from duo to scicat" | ||
authors = ["[email protected]", "carlo.minotti@psi.ch", "[email protected]"] | ||
authors = ["AWI-7903 <awi-7903@psi.ch>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
|