Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/contrail-api-client
build/contrail-go-api
bazel-*
.vscode
40 changes: 40 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ steps:
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//statusmonitor:contrail-statusmonitor-push-debug' ]
env:
- BUILD_ID=$BUILD_ID
- COMMIT_SHA=$COMMIT_SHA
- SHORT_SHA=$SHORT_SHA
- REPO_NAME=$REPO_NAME
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//statusmonitor:contrail-statusmonitor-push-debug-latest' ]
env:
- BUILD_ID=$BUILD_ID
- COMMIT_SHA=$COMMIT_SHA
- SHORT_SHA=$SHORT_SHA
- REPO_NAME=$REPO_NAME
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//contrail-provisioner:contrail-provisioner-push' ]
env:
Expand All @@ -69,6 +89,26 @@ steps:
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//contrail-provisioner:contrail-provisioner-push-debug' ]
env:
- BUILD_ID=$BUILD_ID
- COMMIT_SHA=$COMMIT_SHA
- SHORT_SHA=$SHORT_SHA
- REPO_NAME=$REPO_NAME
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//contrail-provisioner:contrail-provisioner-push-debug-latest' ]
env:
- BUILD_ID=$BUILD_ID
- COMMIT_SHA=$COMMIT_SHA
- SHORT_SHA=$SHORT_SHA
- REPO_NAME=$REPO_NAME
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
timeout: '1h'
options:
machineType: 'N1_HIGHCPU_8'
17 changes: 13 additions & 4 deletions contrail-provisioner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ container_push(
format = "Docker",
registry = "gcr.io",
repository = "eng-prod-237922/contrail-provisioner",
tag = "{BUILD_SCM_BRANCH}.{BUILD_SCM_REVISION}"
tag = "{BUILD_SCM_BRANCH}.{BUILD_SCM_REVISION}",
)

container_push(
Expand All @@ -48,7 +48,7 @@ container_push(
format = "Docker",
registry = "gcr.io",
repository = "eng-prod-237922/contrail-provisioner",
tag = "{BUILD_SCM_BRANCH}.latest"
tag = "{BUILD_SCM_BRANCH}.latest",
)

go_image(
Expand All @@ -64,6 +64,15 @@ container_push(
image = ":contrail-provisioner-image-debug",
format = "Docker",
registry = "gcr.io",
repository = "eng-prod-237922/contrail-provisioner",
tag = "{BUILD_SCM_VERSION}",
repository = "eng-prod-237922/contrail-provisioner-debug",
tag = "{BUILD_SCM_BRANCH}.{BUILD_SCM_REVISION}",
)

container_push(
name = "contrail-provisioner-push-debug-latest",
image = ":contrail-provisioner-image-debug",
format = "Docker",
registry = "gcr.io",
repository = "eng-prod-237922/contrail-provisioner-debug",
tag = "{BUILD_SCM_BRANCH}.latest",
)
Loading