github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/builder/testdata/container/BUILD.star (about) 1 load("rules/container.star", "container_build", "container_pull", "container_push") 2 3 # base image 4 container_pull( 5 name = "distroless.tar", 6 reference = "gcr.io/distroless/base:nonroot", 7 ) 8 9 # helloc is an image based on cross compiling packaging 10 container_build( 11 name = "helloc.tar", 12 base = "distroless.tar", 13 entrypoint = ["/usr/bin/helloc"], 14 #labels = ["latest"], 15 prioritized_files = ["/usr/bin/hello"], # Supports estargz. 16 reference = "gcr.io/star-c25e4/helloc:latest", 17 tar = "../packaging/helloc.tar.gz", 18 ) 19 20 # push the image to a registry 21 container_push( 22 name = "myrepo", 23 image = "helloc.tar", 24 reference = "gcr.io/star-c25e4/helloc:latest", 25 )