Skip to content

Commit

Permalink
fix(all): pass --env option in wrangler GHA action (#2540)
Browse files Browse the repository at this point in the history
  • Loading branch information
szkl committed Jul 24, 2023
1 parent 2ca7e42 commit 1ab5a7e
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-email.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-galaxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion .github/workflows/main-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-passport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-email.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-galaxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion .github/workflows/next-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-passport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-email.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-galaxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion .github/workflows/release-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-passport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ab5a7e

Please sign in to comment.