| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7b0af0d commit 62e2005
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,12 +43,15 @@ jobs: | |||
| 43 | 43 | uses: actions/setup-go@v2 | |
| 44 | 44 | with: | |
| 45 | 45 | go-version: 1.18.0 | |
| 46 | + - name: Authenticate to Google Cloud | ||
| 47 | + uses: 'google-github-actions/auth@v1' | ||
| 48 | + with: | ||
| 49 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 46 | 50 | - name: Set up gcloud SDK | |
| 47 | 51 | uses: google-github-actions/setup-gcloud@v1 | |
| 48 | 52 | with: | |
| 53 | + version: '290.0.1' | ||
| 49 | 54 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 50 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 51 | - export_default_credentials: true | ||
| 52 | 55 | - name: Use gcloud CLI | |
| 53 | 56 | run: gcloud info | |
| 54 | 57 | - name: Upgrade pip version | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,12 +27,15 @@ jobs: | |||
| 27 | 27 | with: | |
| 28 | 28 | python-version: "3.8" | |
| 29 | 29 | architecture: x64 | |
| 30 | - - uses: google-github-actions/setup-gcloud@v1 | ||
| 30 | + - name: Authenticate to Google Cloud | ||
| 31 | + uses: 'google-github-actions/auth@v1' | ||
| 32 | + with: | ||
| 33 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 34 | + - name: Set up gcloud SDK | ||
| 35 | + uses: google-github-actions/setup-gcloud@v1 | ||
| 31 | 36 | with: | |
| 32 | 37 | version: '290.0.1' | |
| 33 | - export_default_credentials: true | ||
| 34 | 38 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 35 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 36 | 39 | - run: gcloud auth configure-docker --quiet | |
| 37 | 40 | - name: Get version | |
| 38 | 41 | run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
@@ -150,12 +153,15 @@ jobs: | |||
| 150 | 153 | key: ${{ runner.os }}-it-maven-${{ hashFiles('**/pom.xml') }} | |
| 151 | 154 | restore-keys: | | |
| 152 | 155 | ${{ runner.os }}-it-maven- | |
| 156 | + - name: Authenticate to Google Cloud | ||
| 157 | + uses: 'google-github-actions/auth@v1' | ||
| 158 | + with: | ||
| 159 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 153 | 160 | - name: Set up gcloud SDK | |
| 154 | 161 | uses: google-github-actions/setup-gcloud@v1 | |
| 155 | 162 | with: | |
| 163 | + version: '290.0.1' | ||
| 156 | 164 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 157 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 158 | - export_default_credentials: true | ||
| 159 | 165 | - name: Use gcloud CLI | |
| 160 | 166 | run: gcloud info | |
| 161 | 167 | - name: Set up AWS SDK | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,12 +78,15 @@ jobs: | |||
| 78 | 78 | with: | |
| 79 | 79 | python-version: "3.8" | |
| 80 | 80 | architecture: x64 | |
| 81 | - - uses: google-github-actions/setup-gcloud@v1 | ||
| 81 | + - name: Authenticate to Google Cloud | ||
| 82 | + uses: 'google-github-actions/auth@v1' | ||
| 83 | + with: | ||
| 84 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 85 | + - name: Set up gcloud SDK | ||
| 86 | + uses: google-github-actions/setup-gcloud@v1 | ||
| 82 | 87 | with: | |
| 83 | 88 | version: '290.0.1' | |
| 84 | - export_default_credentials: true | ||
| 85 | 89 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 86 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 87 | 90 | - run: gcloud auth configure-docker --quiet | |
| 88 | 91 | - name: Build image | |
| 89 | 92 | run: make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA} | |
@@ -122,12 +125,15 @@ jobs: | |||
| 122 | 125 | key: ${{ runner.os }}-it-maven-${{ hashFiles('**/pom.xml') }} | |
| 123 | 126 | restore-keys: | | |
| 124 | 127 | ${{ runner.os }}-it-maven- | |
| 128 | + - name: Authenticate to Google Cloud | ||
| 129 | + uses: 'google-github-actions/auth@v1' | ||
| 130 | + with: | ||
| 131 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 125 | 132 | - name: Set up gcloud SDK | |
| 126 | 133 | uses: google-github-actions/setup-gcloud@v1 | |
| 127 | 134 | with: | |
| 135 | + version: '290.0.1' | ||
| 128 | 136 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 129 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 130 | - export_default_credentials: true | ||
| 131 | 137 | - name: Use gcloud CLI | |
| 132 | 138 | run: gcloud info | |
| 133 | 139 | - name: Set up AWS SDK | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,12 +94,15 @@ jobs: | |||
| 94 | 94 | uses: actions/setup-go@v2 | |
| 95 | 95 | with: | |
| 96 | 96 | go-version: ${{ matrix.go-version }} | |
| 97 | - - name: Set up Cloud SDK | ||
| 97 | + - name: Authenticate to Google Cloud | ||
| 98 | + uses: 'google-github-actions/auth@v1' | ||
| 99 | + with: | ||
| 100 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 101 | + - name: Set up gcloud SDK | ||
| 98 | 102 | uses: google-github-actions/setup-gcloud@v1 | |
| 99 | 103 | with: | |
| 104 | + version: '290.0.1' | ||
| 100 | 105 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 101 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 102 | - export_default_credentials: true | ||
| 103 | 106 | - name: Use gcloud CLI | |
| 104 | 107 | run: gcloud info | |
| 105 | 108 | - name: Set up AWS SDK | |
@@ -194,12 +197,15 @@ jobs: | |||
| 194 | 197 | with: | |
| 195 | 198 | username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| 196 | 199 | password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| 197 | - - name: Set up Cloud SDK | ||
| 200 | + - name: Authenticate to Google Cloud | ||
| 201 | + uses: 'google-github-actions/auth@v1' | ||
| 202 | + with: | ||
| 203 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 204 | + - name: Set up gcloud SDK | ||
| 198 | 205 | uses: google-github-actions/setup-gcloud@v1 | |
| 199 | 206 | with: | |
| 207 | + version: '290.0.1' | ||
| 200 | 208 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 201 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 202 | - export_default_credentials: true | ||
| 203 | 209 | - name: Use gcloud CLI | |
| 204 | 210 | run: gcloud info | |
| 205 | 211 | - run: gcloud auth configure-docker --quiet | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -144,12 +144,15 @@ jobs: | |||
| 144 | 144 | uses: actions/setup-go@v2 | |
| 145 | 145 | with: | |
| 146 | 146 | go-version: 1.18.0 | |
| 147 | + - name: Authenticate to Google Cloud | ||
| 148 | + uses: 'google-github-actions/auth@v1' | ||
| 149 | + with: | ||
| 150 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 147 | 151 | - name: Set up gcloud SDK | |
| 148 | 152 | uses: google-github-actions/setup-gcloud@v1 | |
| 149 | 153 | with: | |
| 154 | + version: '290.0.1' | ||
| 150 | 155 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 151 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 152 | - export_default_credentials: true | ||
| 153 | 156 | - name: Use gcloud CLI | |
| 154 | 157 | run: gcloud info | |
| 155 | 158 | - name: Set up AWS SDK | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,12 +120,15 @@ jobs: | |||
| 120 | 120 | uses: actions/setup-go@v2 | |
| 121 | 121 | with: | |
| 122 | 122 | go-version: 1.18.0 | |
| 123 | + - name: Authenticate to Google Cloud | ||
| 124 | + uses: 'google-github-actions/auth@v1' | ||
| 125 | + with: | ||
| 126 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 123 | 127 | - name: Set up gcloud SDK | |
| 124 | 128 | uses: google-github-actions/setup-gcloud@v1 | |
| 125 | 129 | with: | |
| 130 | + version: '290.0.1' | ||
| 126 | 131 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 127 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 128 | - export_default_credentials: true | ||
| 129 | 132 | - name: Use gcloud CLI | |
| 130 | 133 | run: gcloud info | |
| 131 | 134 | - name: Set up AWS SDK | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,12 +64,15 @@ jobs: | |||
| 64 | 64 | with: | |
| 65 | 65 | username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| 66 | 66 | password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| 67 | - - name: Set up Cloud SDK | ||
| 67 | + - name: Authenticate to Google Cloud | ||
| 68 | + uses: 'google-github-actions/auth@v1' | ||
| 69 | + with: | ||
| 70 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 71 | + - name: Set up gcloud SDK | ||
| 68 | 72 | uses: google-github-actions/setup-gcloud@v1 | |
| 69 | 73 | with: | |
| 74 | + version: '290.0.1' | ||
| 70 | 75 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 71 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 72 | - export_default_credentials: true | ||
| 73 | 76 | - name: Use gcloud CLI | |
| 74 | 77 | run: gcloud info | |
| 75 | 78 | - run: gcloud auth configure-docker --quiet | |
@@ -104,12 +107,15 @@ jobs: | |||
| 104 | 107 | VERSION_WITHOUT_PREFIX: ${{ needs.get-version.outputs.version_without_prefix }} | |
| 105 | 108 | steps: | |
| 106 | 109 | - uses: actions/checkout@v2 | |
| 107 | - - uses: google-github-actions/setup-gcloud@v1 | ||
| 110 | + - name: Authenticate to Google Cloud | ||
| 111 | + uses: 'google-github-actions/auth@v1' | ||
| 112 | + with: | ||
| 113 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 114 | + - name: Set up gcloud SDK | ||
| 115 | + uses: google-github-actions/setup-gcloud@v1 | ||
| 108 | 116 | with: | |
| 109 | 117 | version: '290.0.1' | |
| 110 | - export_default_credentials: true | ||
| 111 | 118 | project_id: ${{ secrets.GCP_PROJECT_ID }} | |
| 112 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 113 | 119 | - run: gcloud auth configure-docker --quiet | |
| 114 | 120 | - name: Remove previous Helm | |
| 115 | 121 | run: sudo rm -rf $(which helm) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,12 +35,15 @@ Fork specific integration tests are run by the `fork_pr_integration_tests.yml_[p | |||
| 35 | 35 | 2. If your offline store/online store needs special setup, add it to the job similar to how gcp is setup. | |
| 36 | 36 | ||
| 37 | 37 | ```yaml | |
| 38 | - - name: Set up gcloud SDK | ||
| 38 | + - name: Authenticate to Google Cloud | ||
| 39 | + uses: 'google-github-actions/auth@v1' | ||
| 40 | + with: | ||
| 41 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| 42 | + - name: Set up gcloud SDK | ||
| 39 | 43 | uses: google-github-actions/setup-gcloud@v1 | |
| 40 | 44 | with: | |
| 41 | - project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
| 42 | - service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
| 43 | - export_default_credentials: true | ||
| 45 | + version: '290.0.1' | ||
| 46 | + project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
| 44 | 47 | ``` | |
| 45 | 48 | ||
| 46 | 49 | 3. Add any environment variables that you need to your github [secrets](https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md). | |
| Back | FazBrowse Home | New Git URL |
0 commit comments