From 8d65b9d6920e72cb663ee5ff8e8b3e42a1778f66 Mon Sep 17 00:00:00 2001 From: Carlo Minotti <50220438+minottic@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:24:59 +0200 Subject: [PATCH] Revert "Add option to choose deployment env on dispatch" This reverts commit 94e3ac029b982f3a27d804878aa226784f9c77aa. --- .github/workflows/reusable.environment.yml | 7 +------ .github/workflows/scicat-be.yml | 8 -------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/reusable.environment.yml b/.github/workflows/reusable.environment.yml index 1485a13b..4c885c95 100644 --- a/.github/workflows/reusable.environment.yml +++ b/.github/workflows/reusable.environment.yml @@ -11,10 +11,6 @@ on: description: commit of the CI repo to deploy on workflow dispatch required: false type: string - environment: - description: environment to deploy to - required: false - type: string outputs: tag: description: tag of the docker image @@ -50,8 +46,7 @@ jobs: commit=${input_commit:-${{ github.sha }}} submodule_append=`[ -z ${{ inputs.submodule_commit }} ] || echo "_sha-${{ inputs.submodule_commit }}" && echo ""` tag="sha-$commit$submodule_append" - env=${{ inputs.environment }} - environment=${env:-development} + environment=development elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then tag="sha-${{ github.sha }}" environment=qa diff --git a/.github/workflows/scicat-be.yml b/.github/workflows/scicat-be.yml index 43e4ab05..236d7d2c 100644 --- a/.github/workflows/scicat-be.yml +++ b/.github/workflows/scicat-be.yml @@ -9,13 +9,6 @@ on: commit: description: 'Commit of the CI repo to deploy' required: false - environment: - description: 'Environment to deploy to' - type: choice - default: 'development' - options: - - development - - qa pull_request: branches: [ main ] push: @@ -30,7 +23,6 @@ jobs: with: commit: ${{ github.event.inputs.commit }} submodule_commit: ${{ github.event.inputs.submodule_commit }} - environment: ${{ github.event.inputs.environment }} check_changed: needs: set_env