diff --git a/.github/workflows/reusable.environment.yml b/.github/workflows/reusable.environment.yml index 1485a13..4c885c9 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 43e4ab0..236d7d2 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