Skip to content

Commit c34c22a

Browse files
committed
Merge remote-tracking branch 'origin/main' into gh_pages
2 parents e155956 + e55da88 commit c34c22a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

internal/client/connections/connectors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type listconnections struct {
4040

4141
type connection struct {
4242
Name *string `json:"name,omitempty"`
43+
Labels *map[string]string `json:"labels,omitempty"`
4344
Description string `json:"description,omitempty"`
4445
ConnectorVersion *string `json:"connectorVersion,omitempty"`
4546
ConnectorDetails *connectorDetails `json:"connectorDetails,omitempty"`

internal/cmd/utils/utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ customActions:
145145
- name: render-%s-integration
146146
containers:
147147
- name: render
148-
image: us-docker.pkg.dev/appintegration-toolkit/images/integrationcli:%s
148+
image: us-docker.pkg.dev/appintegration-toolkit/images/integrationcli:v%s
149149
command: ['sh']
150150
args:
151151
- '-c'
@@ -154,7 +154,7 @@ customActions:
154154
- name: deploy-%s-integration
155155
containers:
156156
- name: deploy
157-
image: us-docker.pkg.dev/appintegration-toolkit/images/integrationcli:%s
157+
image: us-docker.pkg.dev/appintegration-toolkit/images/integrationcli:v%s
158158
command: ['sh']
159159
args:
160160
- '-c'
@@ -186,7 +186,7 @@ permissions: read-all
186186
on: push
187187
188188
env:
189-
ENVIRONMENT: 'dev'
189+
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
190190
PROJECT_ID: ${{ vars.PROJECT_ID }}
191191
REGION: ${{ vars.REGION }}
192192
WORKLOAD_IDENTITY_PROVIDER_NAME: ${{ vars.PROVIDER_NAME }}
@@ -225,7 +225,7 @@ jobs:
225225
id: 'publish-integration'
226226
uses: docker://us-docker.pkg.dev/appintegration-toolkit/images/integrationcli:%s #pin to version of choice
227227
with:
228-
args: integrations apply --env=${{ env.ENVIRONMENT}} --folder=. --userlabel=${{ steps.calc-vars.outputs.SHORT_SHA }} --wait=true --proj=${{ env.PROJECT_ID }} --reg=${{ env.REGION }} --token ${{ steps.gcp-auth.outputs.access_token }}`
228+
args: integrations apply --env=${{ env.ENVIRONMENT}} --folder=. --userlabel=${{ steps.calc-vars.outputs.SHORT_SHA }} --run-tests=true --wait=true --proj=${{ env.PROJECT_ID }} --reg=${{ env.REGION }} --token ${{ steps.gcp-auth.outputs.access_token }}`
229229

230230
func GetCloudDeployYaml(integrationName string, env string) string {
231231
if env == "" {

samples/scaffold-sample/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
2-
gcloud deploy releases create test-release-$((RANDOM % 900 + 100)) --project=${PROJECT_ID} --region=${LOCATION} --to-target=dev-env --delivery-pipeline=appint-sample-pipeline
2+
RELEASE_NAME=test-release
3+
gcloud deploy releases create $RELEASE_NAME--$(date +'%Y%m%d%H%M%S') --project=${PROJECT_ID} --region=${LOCATION} --to-target=dev --delivery-pipeline=appint-sample-pipeline

0 commit comments

Comments
 (0)