Skip to content

Commit

Permalink
Revert "Add option to choose deployment env on dispatch"
Browse files Browse the repository at this point in the history
This reverts commit 94e3ac0.
  • Loading branch information
minottic committed Oct 21, 2024
1 parent 94e3ac0 commit d2b107f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/reusable.environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/scicat-be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit d2b107f

Please sign in to comment.