Skip to content

Releases: chainguard-dev/rules_apko

v1.4.0

26 Sep 15:36
cda290d
Compare
Choose a tag to compare

Initial setup (when using with Bazel < 7.1)

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.

Using Bzlmod

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.4.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 = "bb99e7040dbebdf5edd5a2a0d6078f5e2e0a4f8d57e419216c3844b9062042c1",
    strip_prefix = "rules_apko-1.4.0",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.4.0/rules_apko-v1.4.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()

translate_apko_lock(
    name = "example_multifile_lock",
    lock = "@//multifile_config:apko.generated.lock.json",
)

load("@example_multifile_lock//:repositories.bzl", multifile_lock_repositories = "apko_repositories")

multifile_lock_repositories()

What's Changed

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

16 Jun 19:34
5d30a2d
Compare
Choose a tag to compare

Initial setup (when using with Bazel < 7.1)

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.

Using Bzlmod

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.3.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 = "fbe12e9d578a514cbfb21bf10dc182769bceb08542ebd33d9ee560bd280ae072",
    strip_prefix = "rules_apko-1.3.0",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.3.0/rules_apko-v1.3.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()

translate_apko_lock(
    name = "example_multifile_lock",
    lock = "@//multifile_config:apko.generated.lock.json",
)

load("@example_multifile_lock//:repositories.bzl", multifile_lock_repositories = "apko_repositories")

multifile_lock_repositories()

What's Changed

New Contributors

Full Changelog: v1.2.3...v1.3.0

v1.2.3

28 Feb 21:41
6fb3b7b
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.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 = "0c1152e23c72ebf9ffac1921e395ad6a5501e72ded4ce505a5e05161e1f0793d",
    strip_prefix = "rules_apko-1.2.3",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.2.3/rules_apko-v1.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: v1.2.2...v1.2.3

v1.2.2

27 Feb 22:33
cf2b18e
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.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 = "f176171f95ee2b6eef1572c6da796d627940a1e898a32d476a2d7a9a99332960",
    strip_prefix = "rules_apko-1.2.2",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.2.2/rules_apko-v1.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

  • Make sure .apko/range.sh is created executable by apko_bazelrc macro. by @sfc-gh-ptabor in #40
  • Rename .resolve targets (deprecated) to .lock targets (consistency with apko 0.13+) by @sfc-gh-ptabor in #47
  • chore: update locks by @thesayyn in #51

Full Changelog: v1.2.1...v1.2.2

v1.2.1

08 Jan 17:43
620fba9
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.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 = "0164a1422da69fe6a12f8eedcd331e5539eaf1fd6dc98981bc8f858d1169e4a9",
    strip_prefix = "rules_apko-1.2.1",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.2.1/rules_apko-v1.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.resolved.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

  • Update CONTRIBUTING.md by @alexeagle in #38
  • Bugfix: call to rules_apko target from another repository was failing by @sfc-gh-ptabor in #39
  • Integrate with apko-0.13+ . Pass --lockfile to apko to get hermetic (re)builds. by @sfc-gh-ptabor in #41

Full Changelog: v1.1.0...v1.2.1

v1.2.0

02 Jan 01:27
620fba9
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.2.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 = "110baef9ee58c40c26447fbca2e87163b58c7f1540c79650b8349f389a9f6b29",
    strip_prefix = "rules_apko-1.2.0",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.2.0/rules_apko-v1.2.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.resolved.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.

v1.1.1

30 Nov 16:13
037a4c9
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.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 = "22d7fe99c1cd92d59014e3c218beddda5bc69149476cf5e9d370ad2aa1423f62",
    strip_prefix = "rules_apko-1.1.1",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.1.1/rules_apko-v1.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.resolved.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

  • Do not depend on the alpine/edge (as resolved artifacts are dangling). by @sfc-gh-ptabor in #33
  • Enable: bazel run @rules_apko//apko resolve ./apko.yaml by @sfc-gh-ptabor in #36
  • Enable: bazel run {path/to/apko_image_target}.resolve that regenerates resolved.json file. by @sfc-gh-ptabor in #37
  • fix: avoid double-escaping in url_escape by @plobsing in #30

New Contributors

Full Changelog: v1.0.0...v1.1.1

v1.1.0

30 Nov 16:04
037a4c9
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.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 = "95152b4eee2339cc1bf89f4a35fad9cd286f91ea18e4b8800b03fca726f9eb57",
    strip_prefix = "rules_apko-1.1.0",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.1.0/rules_apko-v1.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.resolved.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.

v1.0.0

26 Oct 21:40
f388876
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.0.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 = "c973924480187bc26297d8047508e031d0cd79c896e427899479a23bc632c552",
    strip_prefix = "rules_apko-1.0.0",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.0.0/rules_apko-v1.0.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.resolved.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.3...v1.0.0

v1.0.0-rc1

20 Oct 18:17
3b53efc
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_apko", version = "1.0.0-rc1")

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 = "5c91a2322bec84a0005dd8178495775938b581053812e70d21b030bef3625623",
    strip_prefix = "rules_apko-1.0.0-rc1",
    url = "https://github.com/chainguard-dev/rules_apko/releases/download/v1.0.0-rc1/rules_apko-v1.0.0-rc1.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.3...v1.0.0-rc1