Releases: chainguard-dev/rules_apko
v0.2.3
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_apko", version = "0.2.3")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_apko",
sha256 = "98eeb5332e693ed32a11f1aefc7f2822a93c451fd485382caa36c00008c632de",
strip_prefix = "rules_apko-0.2.3",
url = "https://github.com/chainguard-dev/rules_apko/releases/download/v0.2.3/rules_apko-v0.2.3.tar.gz",
)
######################
# rules_apko setup #
######################
# Fetches the rules_apko dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_apko//apko:repositories.bzl", "apko_register_toolchains", "rules_apko_dependencies")
rules_apko_dependencies()
apko_register_toolchains(name = "apko")
load("@rules_apko//apko:translate_lock.bzl", "translate_apko_lock")
translate_apko_lock(
name = "example_lock",
lock = "@//:apko.lock.json",
)
load("@example_lock//:repositories.bzl", "apko_repositories")
apko_repositories()
Initial setup
rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.
Follow https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md for the setup.
What's Changed
Full Changelog: v0.2.2...v0.2.3
v0.2.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_apko", version = "0.2.2")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_apko",
sha256 = "9c533eae4befbf77af605ff79728d3f2ea3c09ae8ff7c2a74d439b43dbb5baed",
strip_prefix = "rules_apko-0.2.2",
url = "https://github.com/chainguard-dev/rules_apko/releases/download/v0.2.2/rules_apko-v0.2.2.tar.gz",
)
######################
# rules_apko setup #
######################
# Fetches the rules_apko dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_apko//apko:repositories.bzl", "apko_register_toolchains", "rules_apko_dependencies")
rules_apko_dependencies()
apko_register_toolchains(name = "apko")
load("@rules_apko//apko:translate_lock.bzl", "translate_apko_lock")
translate_apko_lock(
name = "example_lock",
lock = "@//:apko.lock.json",
)
load("@example_lock//:repositories.bzl", "apko_repositories")
apko_repositories()
Initial setup
rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.
Follow https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md for the setup.
What's Changed
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_apko", version = "0.2.1")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_apko",
sha256 = "0d9678ebbcf26992865bc08b104e2be3b2d998899ab14f7a8f3f997251282e05",
strip_prefix = "rules_apko-0.2.1",
url = "https://github.com/chainguard-dev/rules_apko/releases/download/v0.2.1/rules_apko-v0.2.1.tar.gz",
)
######################
# rules_apko setup #
######################
# Fetches the rules_apko dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_apko//apko:repositories.bzl", "apko_register_toolchains", "rules_apko_dependencies")
rules_apko_dependencies()
apko_register_toolchains(name = "apko")
load("@rules_apko//apko:translate_lock.bzl", "translate_apko_lock")
translate_apko_lock(
name = "example_lock",
lock = "@//:apko.lock.json",
)
load("@example_lock//:repositories.bzl", "apko_repositories")
apko_repositories()
Initial setup
rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.
Follow https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md for the setup.
What's Changed
- chore: update apko shas for v0.0.0 by @kawfong in #16
- feat: use apko resolve to generate locks by @thesayyn in #15
- chore: update locks by @thesayyn in #19
- refactor: unwind custom fork by @thesayyn in #18
- chore: remove old locks by @thesayyn in #20
- docs: document how to use apko resolve by @thesayyn in #21
New Contributors
Full Changelog: v0.2.0...v0.2.1
v0.1.1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_apko", version = "0.1.1")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_apko",
sha256 = "114d1424edf7cba3f25143d6e1f3de678007e8d01d9ffd3def7fe8101f5ae023",
strip_prefix = "rules_apko-0.1.1",
url = "https://github.com/chainguard-dev/rules_apko/releases/download/v0.1.1/rules_apko-v0.1.1.tar.gz",
)
######################
# rules_apko setup #
######################
# Fetches the rules_apko dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_apko//apko:repositories.bzl", "apko_register_toolchains", "rules_apko_dependencies")
rules_apko_dependencies()
apko_register_toolchains(name = "apko")
load("@rules_apko//apko:translate_lock.bzl", "translate_apko_lock")
translate_apko_lock(
name = "example_lock",
lock = "@//:apko.lock.json",
)
load("@example_lock//:repositories.bzl", "apko_repositories")
apko_repositories()
Initial setup
rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.
Follow https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md for the setup.
What's Changed
- feat: implement apko rule by @thesayyn in #1
- chore: address changes as a follow-up by @thesayyn in #5
- feat: support oci-layout output by @thesayyn in #6
- example: add multi arch & repo example by @thesayyn in #8
- feat: fail if initial setup has not been performed by @thesayyn in #9
- docs: add cache and rule docs by @thesayyn in #10
New Contributors
Full Changelog: https://github.com/chainguard-dev/rules_apko/commits/v0.1.1
v0.1.0
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_apko", version = "0.1.0")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_apko",
sha256 = "42d4e8a6732c01a374f15a6ca4a90695be84bb6829560d9998dcefd15b2ae667",
strip_prefix = "rules_apko-0.1.0",
url = "https://github.com/chainguard-dev/rules_apko/releases/download/v0.1.0/rules_apko-v0.1.0.tar.gz",
)
######################
# rules_apko setup #
######################
# Fetches the rules_apko dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_apko//apko:repositories.bzl", "apko_register_toolchains", "rules_apko_dependencies")
rules_apko_dependencies()
apko_register_toolchains(name = "apko")
load("@rules_apko//apko:translate_lock.bzl", "translate_apko_lock")
translate_apko_lock(
name = "example_lock",
lock = "@//:apko.lock.json",
)
load("@example_lock//:repositories.bzl", "apko_repositories")
apko_repositories()
Initial setup
rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.
Follow https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md for the setup.
What's Changed
- feat: implement apko rule by @thesayyn in #1
- chore: address changes as a follow-up by @thesayyn in #5
- feat: support oci-layout output by @thesayyn in #6
- example: add multi arch & repo example by @thesayyn in #8
- feat: fail if initial setup has not been performed by @thesayyn in #9
- docs: add cache and rule docs by @thesayyn in #10
New Contributors
Full Changelog: https://github.com/chainguard-dev/rules_apko/commits/v0.1.0