-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gcloud auth setup to docker provider for pulumi/pulumi-docker#505
- Loading branch information
1 parent
a1ae721
commit 323ea4b
Showing
12 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
provider: docker | ||
major-version: 4 | ||
aws: true | ||
gcp: true | ||
env: | ||
AWS_REGION: us-west-2 | ||
ARM_CLIENT_ID: "30e520fa-12b4-4e21-b473-9426c5ac2e1e" | ||
ARM_SUBSCRIPTION_ID: "0282681f-7a9e-424b-80b2-96babd57a8a1" | ||
ARM_TENANT_ID: "706143bc-e1d4-4593-aee2-c9dc60ab9be7" | ||
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | ||
AZURE_LOCATION: westus | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
PULUMI_GO_DEP_ROOT: /home/runner/work/pulumi-docker | ||
upstream-provider-org: kreuzwerker | ||
makeTemplate: bridged | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
@@ -565,6 +572,20 @@ jobs: | |
role-duration-seconds: 3600 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }} | ||
workload_identity_provider: projects/${{ env.GOOGLE_PROJECT_NUMBER | ||
}}/locations/global/workloadIdentityPools/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_POOL }}/providers/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Setup gcloud auth | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
install_components: gke-gcloud-auth-plugin | ||
- name: Login to Google Cloud Registry | ||
run: gcloud --quiet auth configure-docker | ||
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
@@ -565,6 +572,20 @@ jobs: | |
role-duration-seconds: 3600 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }} | ||
workload_identity_provider: projects/${{ env.GOOGLE_PROJECT_NUMBER | ||
}}/locations/global/workloadIdentityPools/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_POOL }}/providers/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Setup gcloud auth | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
install_components: gke-gcloud-auth-plugin | ||
- name: Login to Google Cloud Registry | ||
run: gcloud --quiet auth configure-docker | ||
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
IS_PRERELEASE: true | ||
JAVAVERSION: "11" | ||
|
@@ -515,6 +522,20 @@ jobs: | |
role-duration-seconds: 3600 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }} | ||
workload_identity_provider: projects/${{ env.GOOGLE_PROJECT_NUMBER | ||
}}/locations/global/workloadIdentityPools/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_POOL }}/providers/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Setup gcloud auth | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
install_components: gke-gcloud-auth-plugin | ||
- name: Login to Google Cloud Registry | ||
run: gcloud --quiet auth configure-docker | ||
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
@@ -541,6 +548,20 @@ jobs: | |
role-duration-seconds: 3600 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }} | ||
workload_identity_provider: projects/${{ env.GOOGLE_PROJECT_NUMBER | ||
}}/locations/global/workloadIdentityPools/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_POOL }}/providers/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Setup gcloud auth | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
install_components: gke-gcloud-auth-plugin | ||
- name: Login to Google Cloud Registry | ||
run: gcloud --quiet auth configure-docker | ||
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
@@ -393,6 +400,20 @@ jobs: | |
role-duration-seconds: 3600 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }} | ||
workload_identity_provider: projects/${{ env.GOOGLE_PROJECT_NUMBER | ||
}}/locations/global/workloadIdentityPools/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_POOL }}/providers/${{ | ||
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Setup gcloud auth | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
install_components: gke-gcloud-auth-plugin | ||
- name: Login to Google Cloud Registry | ||
run: gcloud --quiet auth configure-docker | ||
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,13 @@ env: | |
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: [email protected] | ||
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci | ||
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci | ||
GOOGLE_PROJECT: pulumi-ci-gcp-provider | ||
GOOGLE_PROJECT_NUMBER: 895284651812 | ||
GOOGLE_REGION: us-central1 | ||
GOOGLE_ZONE: us-central1-a | ||
GOVERSION: 1.19.x | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
|
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
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