File tree 4 files changed +57
-0
lines changed
4 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 12
12
always_deliver : true
13
13
branches :
14
14
- main
15
+ - delivery_bwotb_test
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ workflows:
10
10
branches :
11
11
only :
12
12
- main
13
+ - delivery_bwotb_test
13
14
- aspect-build/test-delivery
14
15
requires :
15
16
- aw-test
@@ -398,6 +399,9 @@ jobs:
398
399
- equal :
399
400
- main
400
401
- << pipeline.git.branch >>
402
+ - equal :
403
+ - delivery_bwotb_test
404
+ - << pipeline.git.branch >>
401
405
- equal :
402
406
- aspect-build/test-delivery
403
407
- << pipeline.git.branch >>
Original file line number Diff line number Diff line change @@ -256,3 +256,39 @@ fetch_terraform()
256
256
load ("//.aspect/workflows:deps.bzl" , "fetch_workflows_deps" )
257
257
258
258
fetch_workflows_deps ()
259
+
260
+ http_archive (
261
+ name = "rules_oci" ,
262
+ sha256 = "58b7a175ee90c12583afeca388523adf6a4e5a0528f330b41c302b91a4d6fc06" ,
263
+ strip_prefix = "rules_oci-1.6.0" ,
264
+ url = "https://github.com/bazel-contrib/rules_oci/releases/download/v1.6.0/rules_oci-v1.6.0.tar.gz" ,
265
+ )
266
+
267
+ load ("@rules_oci//oci:dependencies.bzl" , "rules_oci_dependencies" )
268
+
269
+ rules_oci_dependencies ()
270
+
271
+ load ("@rules_oci//oci:repositories.bzl" , "LATEST_CRANE_VERSION" , "oci_register_toolchains" )
272
+
273
+ oci_register_toolchains (
274
+ name = "oci" ,
275
+ crane_version = LATEST_CRANE_VERSION ,
276
+ )
277
+
278
+ load ("@rules_oci//oci:pull.bzl" , "oci_pull" )
279
+
280
+ oci_pull (
281
+ name = "debian" ,
282
+ digest = "sha256:3d868b5eb908155f3784317b3dda2941df87bbbbaa4608f84881de66d9bb297b" ,
283
+ image = "debian" ,
284
+ platforms = [
285
+ "linux/386" ,
286
+ "linux/amd64" ,
287
+ "linux/arm/v5" ,
288
+ "linux/arm/v7" ,
289
+ "linux/arm64/v8" ,
290
+ "linux/mips64le" ,
291
+ "linux/ppc64le" ,
292
+ "linux/s390x" ,
293
+ ],
294
+ )
Original file line number Diff line number Diff line change 1
1
load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
2
+ load ("@rules_oci//oci:defs.bzl" , "oci_image" , "oci_push" )
2
3
load (":bazelisk_artifacts.bzl" , "bazelisk_artifacts" )
3
4
load (":cli_brew_artifacts.bzl" , "cli_brew_artifacts" )
4
5
load (":release.bzl" , "multi_platform_binaries" , "release" )
@@ -103,3 +104,18 @@ sh_binary(
103
104
],
104
105
tags = ["deliverable" ],
105
106
)
107
+
108
+ oci_image (
109
+ name = "image" ,
110
+ base = "@debian" ,
111
+ entrypoint = ["bash" ],
112
+ tars = [],
113
+ visibility = ["//visibility:public" ],
114
+ )
115
+
116
+ oci_push (
117
+ name = "push_image" ,
118
+ image = ":image" ,
119
+ repository = "111111111111.dkr.ecr.us-west-2.amazonaws.com/foo/bar" ,
120
+ tags = ["deliverable" ],
121
+ )
You can’t perform that action at this time.
0 commit comments