Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
15 changes: 0 additions & 15 deletions build/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions build/bin/entrypoint

This file was deleted.

13 changes: 0 additions & 13 deletions build/bin/user_setup

This file was deleted.

42 changes: 41 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:
- BRANCH_NAME=$BRANCH_NAME
- TAG_NAME=$TAG_NAME
- REVISION_ID=$REVISION_ID
args: ['test', '--config=remote', '//pkg/apis/contrail/v1alpha1/tests:go_default_test']
args: ['test', '--config=remote', '//pkg/...']
- name: 'gcr.io/cloud-builders/bazel'
args: ['run', '--config=remote', '//cmd/manager:contrail-operator-push' ]
env:
Expand Down 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