Skip to content

Commit

Permalink
add support for the second prod deployment schema
Browse files Browse the repository at this point in the history
  • Loading branch information
solarw committed Feb 7, 2024
1 parent efcef30 commit c5adb55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
docker push $DOCKER_USER/oar-$AGENT:$DEFAULT_IMAGE_TAG
deploy-service-on-propel:
name: Deploy service on propel
environment: ${{ github.event.action == 'released' && 'production' || 'staging' }}
environment: ${{ fromJSON('[["staging", "staging"], ["production", "shorts_production"]]')[github.event.action == 'released'][endsWith(github.event.release.name, '(shorts)')] }}
needs:
- "publish-packages"
- "publish-images"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
deploy-service-on-propel:
name: Deploy service on propel
environment: 'staging'
environment: 'production'
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit c5adb55

Please sign in to comment.