Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'Build and push images' action #435

Merged
merged 1 commit into from
Jul 13, 2023
Merged
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
9 changes: 9 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ load(
"container_push",
)

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

container_push(
name = "push-forklift-controller",
format = "Docker",
Expand Down
7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ http_file(
],
)

load("@io_bazel_rules_docker//contrib:dockerfile_build.bzl", "dockerfile_image")

dockerfile_image(
name = "ova-provider-server-image-dockerfile",
dockerfile = "//:ova_provider_server_containerfile",
)

load(
"@io_bazel_rules_docker//toolchains/docker:toolchain.bzl",
docker_toolchain_configure = "toolchain_configure",
Expand Down
11 changes: 11 additions & 0 deletions cmd/ova-provider-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ go_binary(
embed = [":ova-provider-server_lib"],
visibility = ["//visibility:public"],
)

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

container_image(
name = "ova-provider-server-image",
base = "@ova-provider-server-image-dockerfile//image:dockerfile_image.tar",
visibility = ["//visibility:public"],
)
Empty file.
2 changes: 1 addition & 1 deletion hack/release-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bazel run --package_path=virt-v2v/warm push-forklift-virt-v2v-warm
bazel run push-populator-controller
bazel run push-forklift-controller
bazel run push-forklift-validation
bazel run push-ova-provider-server-image
bazel run push-ova-provider-server
bazel run push-forklift-operator
bazel run push-forklift-operator-bundle \
--action_env OPERATOR_IMAGE=${OPERATOR_IMAGE} \
Expand Down
1 change: 1 addition & 0 deletions ova_provider_server_containerfile
Loading