Support DNS-based endpoint #320
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Integration' | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release/**/*' | |
pull_request: | |
branches: | |
- 'main' | |
- 'release/**/*' | |
workflow_dispatch: | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
jobs: | |
public: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-node@v4' | |
with: | |
node-version: '20.x' | |
- name: 'npm build' | |
run: 'npm ci && npm run build' | |
- uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}' | |
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}' | |
- name: 'get-gke-credentials' | |
uses: './' | |
with: | |
project_id: '${{ vars.PROJECT_ID }}' | |
cluster_name: '${{ vars.PUBLIC_CLUSTER_NAME }}' | |
location: '${{ vars.PUBLIC_CLUSTER_LOCATION }}' | |
namespace: 'default' | |
- name: 'kubectl' | |
run: |- | |
kubectl get ns | |
private: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-node@v4' | |
with: | |
node-version: '20.x' | |
- name: 'npm build' | |
run: 'npm ci && npm run build' | |
- uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}' | |
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}' | |
- name: 'get-gke-credentials' | |
uses: './' | |
with: | |
project_id: '${{ vars.PROJECT_ID }}' | |
cluster_name: '${{ vars.PRIVATE_CLUSTER_NAME }}' | |
location: '${{ vars.PRIVATE_CLUSTER_LOCATION }}' | |
use_connect_gateway: 'true' | |
namespace: 'default' | |
- name: 'kubectl' | |
run: |- | |
kubectl get ns |