From c5adb555726e7a013bb09d01bb8fe7709eabdd9c Mon Sep 17 00:00:00 2001 From: "Yuri (solarw) Turchenkov" Date: Wed, 7 Feb 2024 11:22:23 +0300 Subject: [PATCH] add support for the second prod deployment schema --- .github/workflows/release.yaml | 2 +- .github/workflows/test_release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 45b3bdb6..fb31f354 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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" diff --git a/.github/workflows/test_release.yaml b/.github/workflows/test_release.yaml index 3d55adf4..5da72983 100644 --- a/.github/workflows/test_release.yaml +++ b/.github/workflows/test_release.yaml @@ -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: