From 1ab5a7ecc7edc143a4c23ff509b72b39cc1840d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nmez=20Kartal?= Date: Mon, 24 Jul 2023 20:40:01 +0300 Subject: [PATCH] fix(all): pass `--env` option in wrangler GHA action (#2540) --- .github/workflows/main-console.yaml | 2 +- .github/workflows/main-core.yaml | 2 +- .github/workflows/main-email.yaml | 2 +- .github/workflows/main-galaxy.yaml | 2 +- .github/workflows/main-images.yaml | 2 +- .github/workflows/main-passport.yaml | 2 +- .github/workflows/main-profile.yaml | 2 +- .github/workflows/next-console.yaml | 2 +- .github/workflows/next-core.yaml | 2 +- .github/workflows/next-email.yaml | 2 +- .github/workflows/next-galaxy.yaml | 2 +- .github/workflows/next-images.yaml | 2 +- .github/workflows/next-passport.yaml | 2 +- .github/workflows/next-profile.yaml | 2 +- .github/workflows/release-console.yaml | 2 +- .github/workflows/release-core.yaml | 2 +- .github/workflows/release-email.yaml | 2 +- .github/workflows/release-galaxy.yaml | 2 +- .github/workflows/release-images.yaml | 2 +- .github/workflows/release-passport.yaml | 2 +- .github/workflows/release-profile.yaml | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main-console.yaml b/.github/workflows/main-console.yaml index 56e99c7b4a..2b2e5b470d 100644 --- a/.github/workflows/main-console.yaml +++ b/.github/workflows/main-console.yaml @@ -49,7 +49,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/console' - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/main-core.yaml b/.github/workflows/main-core.yaml index 8e2180f862..ded8cec182 100644 --- a/.github/workflows/main-core.yaml +++ b/.github/workflows/main-core.yaml @@ -56,7 +56,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/core - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' secrets: | SECRET_JWK_CURRENT_KID diff --git a/.github/workflows/main-email.yaml b/.github/workflows/main-email.yaml index 95a2445803..deb37f74eb 100644 --- a/.github/workflows/main-email.yaml +++ b/.github/workflows/main-email.yaml @@ -46,7 +46,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/email - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' secrets: | INTERNAL_DKIM_DOMAIN diff --git a/.github/workflows/main-galaxy.yaml b/.github/workflows/main-galaxy.yaml index 53d8755ac4..1a7ff52883 100644 --- a/.github/workflows/main-galaxy.yaml +++ b/.github/workflows/main-galaxy.yaml @@ -51,7 +51,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/galaxy' - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' env: NODE_ENV: 'development' diff --git a/.github/workflows/main-images.yaml b/.github/workflows/main-images.yaml index 23263b9ed8..de50e03001 100644 --- a/.github/workflows/main-images.yaml +++ b/.github/workflows/main-images.yaml @@ -48,7 +48,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/images' - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' # This causes secrets to be set as if by: $ wrangler secret put. # Each supplied name must be defined in the env: config stanza. diff --git a/.github/workflows/main-passport.yaml b/.github/workflows/main-passport.yaml index c74b03dbcb..dda14f0125 100644 --- a/.github/workflows/main-passport.yaml +++ b/.github/workflows/main-passport.yaml @@ -48,7 +48,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/passport' - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/main-profile.yaml b/.github/workflows/main-profile.yaml index ae02d863c1..9f9c075fd9 100644 --- a/.github/workflows/main-profile.yaml +++ b/.github/workflows/main-profile.yaml @@ -48,7 +48,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/profile' - command: publish --config wrangler.dev.toml + command: publish --config wrangler.dev.toml --env dev environment: 'dev' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/next-console.yaml b/.github/workflows/next-console.yaml index bb8127b72a..88cfddcb27 100644 --- a/.github/workflows/next-console.yaml +++ b/.github/workflows/next-console.yaml @@ -49,7 +49,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/console' - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/next-core.yaml b/.github/workflows/next-core.yaml index 4133b3b9e1..ce43011566 100644 --- a/.github/workflows/next-core.yaml +++ b/.github/workflows/next-core.yaml @@ -56,7 +56,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/core - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' secrets: | SECRET_JWK_CURRENT_KID diff --git a/.github/workflows/next-email.yaml b/.github/workflows/next-email.yaml index 548eb54f86..68e90a15b2 100644 --- a/.github/workflows/next-email.yaml +++ b/.github/workflows/next-email.yaml @@ -46,7 +46,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/email - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' secrets: | INTERNAL_DKIM_DOMAIN diff --git a/.github/workflows/next-galaxy.yaml b/.github/workflows/next-galaxy.yaml index 250765d0c0..a738b60a04 100644 --- a/.github/workflows/next-galaxy.yaml +++ b/.github/workflows/next-galaxy.yaml @@ -50,5 +50,5 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/galaxy' - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' diff --git a/.github/workflows/next-images.yaml b/.github/workflows/next-images.yaml index 3b382dd1cf..26bcf5486d 100644 --- a/.github/workflows/next-images.yaml +++ b/.github/workflows/next-images.yaml @@ -48,7 +48,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/images' - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' # This causes secrets to be set as if by: $ wrangler secret put. # Each supplied name must be defined in the env: config stanza. diff --git a/.github/workflows/next-passport.yaml b/.github/workflows/next-passport.yaml index f81deb1c0d..2c7ba3738c 100644 --- a/.github/workflows/next-passport.yaml +++ b/.github/workflows/next-passport.yaml @@ -46,7 +46,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/passport' - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/next-profile.yaml b/.github/workflows/next-profile.yaml index 1f620e2ec8..f39e1cecc9 100644 --- a/.github/workflows/next-profile.yaml +++ b/.github/workflows/next-profile.yaml @@ -46,7 +46,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/profile' - command: publish --config wrangler.next.toml + command: publish --config wrangler.next.toml --env next environment: 'next' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/release-console.yaml b/.github/workflows/release-console.yaml index 5c2885c4b0..d9ab0613c7 100644 --- a/.github/workflows/release-console.yaml +++ b/.github/workflows/release-console.yaml @@ -44,7 +44,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/console' - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/release-core.yaml b/.github/workflows/release-core.yaml index 20b93ec801..cebccf593d 100644 --- a/.github/workflows/release-core.yaml +++ b/.github/workflows/release-core.yaml @@ -55,7 +55,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/core - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' secrets: | SECRET_JWK_CURRENT_KID diff --git a/.github/workflows/release-email.yaml b/.github/workflows/release-email.yaml index 6b7c9c48b3..61441ab479 100644 --- a/.github/workflows/release-email.yaml +++ b/.github/workflows/release-email.yaml @@ -45,7 +45,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: platform/email - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' secrets: | INTERNAL_DKIM_DOMAIN diff --git a/.github/workflows/release-galaxy.yaml b/.github/workflows/release-galaxy.yaml index ddacc9f2dd..69d666c65d 100644 --- a/.github/workflows/release-galaxy.yaml +++ b/.github/workflows/release-galaxy.yaml @@ -45,5 +45,5 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/galaxy' - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' diff --git a/.github/workflows/release-images.yaml b/.github/workflows/release-images.yaml index 58958136a3..7a000e1da3 100644 --- a/.github/workflows/release-images.yaml +++ b/.github/workflows/release-images.yaml @@ -44,7 +44,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'platform/images' - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' # This causes secrets to be set as if by: $ wrangler secret put. # Each supplied name must be defined in the env: config stanza. diff --git a/.github/workflows/release-passport.yaml b/.github/workflows/release-passport.yaml index 76997cfa0b..6d5fc7f131 100644 --- a/.github/workflows/release-passport.yaml +++ b/.github/workflows/release-passport.yaml @@ -42,7 +42,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/passport' - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' secrets: | SECRET_SESSION_KEY diff --git a/.github/workflows/release-profile.yaml b/.github/workflows/release-profile.yaml index cef55b6919..f24220aac4 100644 --- a/.github/workflows/release-profile.yaml +++ b/.github/workflows/release-profile.yaml @@ -42,7 +42,7 @@ jobs: apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} workingDirectory: 'apps/profile' - command: publish --config wrangler.current.toml + command: publish --config wrangler.current.toml --env current environment: 'current' secrets: | SECRET_SESSION_KEY