diff --git a/oci/BUILD b/oci/BUILD deleted file mode 100644 index dd1d5ed92..000000000 --- a/oci/BUILD +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 - -bzl_library( - name = "oci_bzl", - srcs = ["oci.bzl"], - visibility = ["//visibility:private"], -) diff --git a/oci/oci.bzl b/oci/oci.bzl deleted file mode 100644 index f6d3ef2f7..000000000 --- a/oci/oci.bzl +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -"""Rules for manipulation OCI images.""" - -load( - "//container:container.bzl", - "container_push", -) - -def oci_push(*args, **kwargs): - if "format" in kwargs: - fail( - "Cannot override 'format' attribute on oci_push", - attr = "format", - ) - kwargs["format"] = "OCI" - container_push(*args, **kwargs) diff --git a/testdata/BUILD b/testdata/BUILD index 9099f625d..95a981d69 100644 --- a/testdata/BUILD +++ b/testdata/BUILD @@ -49,7 +49,6 @@ load( ) load("//kotlin:image.bzl", "kt_jvm_image") load("//nodejs:image.bzl", "nodejs_image") -load("//oci:oci.bzl", "oci_push") load("//python:image.bzl", "py_image", "py_layer") load("//python3:image.bzl", "py3_image") load("//scala:image.bzl", "scala_image") @@ -471,15 +470,6 @@ docker_push( tag = "{BUILD_USER}", ) -oci_push( - name = "push_stamp_oci", - image = ":link_with_files_base", - registry = "gcr.io", - repository = "convoy-adapter/bazel-oci-test", - stamp = "//stamp:always", - tag = "{BUILD_USER}", -) - container_image( name = "pause_based", base = ":pause.tar",