Skip to content

Commit

Permalink
ci: Specifying environment name from matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Oct 3, 2023
1 parent ef2de31 commit 5dfd353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
permissions: # Required by google-github-actions/auth
contents: 'read'
id-token: 'write'
environment: staging
needs: build-and-push
runs-on: ubuntu-latest
strategy:
Expand All @@ -83,6 +82,8 @@ jobs:
postfix: -tw
- region: asia-northeast1
postfix: -ja
environment:
name: staging${{ matrix.locales.postfix }}
env:
RELEASE_TAG: ${{ startsWith(github.ref, 'refs/tags/release') && 'latest' || 'dev' }}
CLOUDRUN_SERVICE_NAME: ${{ startsWith(github.ref, 'refs/tags/release') && 'site' || 'site-staging' }}
Expand Down

0 comments on commit 5dfd353

Please sign in to comment.