Skip to content

Commit

Permalink
Push ovirt-populator image with bazel
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Jul 17, 2023
1 parent f237080 commit 2ea184b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/build-push-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}
./hack/release-images.sh
make push-ovirt-populator-image
make push-openstack-populator-image
9 changes: 9 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ container_push(
tag = "$${REGISTRY_TAG:-devel}",
)

container_push(
name = "push-ovirt-populator",
format = "Docker",
image = "//cmd/ovirt-populator:ovirt-populator-image",
registry = "$${REGISTRY:-quay.io}",
repository = "$${REGISTRY_ACCOUNT:-}$${REGISTRY_ACCOUNT:+/}ovirt-populator",
tag = "$${REGISTRY_TAG:-devel}",
)

container_push(
name = "push-forklift-controller",
format = "Docker",
Expand Down
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ dockerfile_image(
dockerfile = "//:ova_provider_server_containerfile",
)

dockerfile_image(
name = "ovirt-populator-image-dockerfile",
dockerfile = "//:ovirt_populator_containerfile",
)

load(
"@io_bazel_rules_docker//toolchains/docker:toolchain.bzl",
docker_toolchain_configure = "toolchain_configure",
Expand Down
11 changes: 11 additions & 0 deletions cmd/ovirt-populator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ go_library(
"//vendor/k8s.io/klog/v2:klog",
],
)

load(
"@io_bazel_rules_docker//container:container.bzl",
"container_image",
)

container_image(
name = "ovirt-populator-image",
base = "@ovirt-populator-image-dockerfile//image:dockerfile_image.tar",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions hack/release-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ POPULATOR_CONTROLLER_IMAGE=${REGISTRY}/${REGISTRY_ORG}/populator-controller:${RE
OVA_PROVIDER_SERVER=${REGISTRY}/${REGISTRY_ORG}/forklift-ova-provider-server:${REGISTRY_TAG}

bazel run push-forklift-api
bazel run push-ovirt-populator
bazel run --package_path=virt-v2v/cold push-forklift-virt-v2v
bazel run --package_path=virt-v2v/warm push-forklift-virt-v2v-warm
bazel run push-populator-controller
Expand Down
1 change: 1 addition & 0 deletions ovirt_populator_containerfile

0 comments on commit 2ea184b

Please sign in to comment.