Skip to content

Commit

Permalink
Update dependency rules_oci to v2.2.1 (#283)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rules_oci](https://redirect.github.com/bazel-contrib/rules_oci) |
bazel_dep | patch | `2.2.0` -> `2.2.1` |

---

### Release Notes

<details>
<summary>bazel-contrib/rules_oci (rules_oci)</summary>

###
[`v2.2.1`](https://redirect.github.com/bazel-contrib/rules_oci/releases/tag/v2.2.1)

#### Using bzlmod with Bazel 6 or later:

1.  Add `common --enable_bzlmod` to `.bazelrc`.

2.  Add to your `MODULE.bazel` file:

```starlark
bazel_dep(name = "rules_oci", version = "2.2.1")

### For testing, we also recommend https://registry.bazel.build/modules/container_structure_test

oci = use_extension("@&#8203;rules_oci//oci:extensions.bzl", "oci")

### Declare external images you need to pull, for example: 
oci.pull(
    name = "distroless_base",

### 'latest' is not reproducible, but it's convenient.
### During the build we print a WARNING message that includes recommended 'digest' and 'platforms'

### values which you can use here in place of 'tag' to pin for reproducibility.
    tag = "latest",
    image = "gcr.io/distroless/base",
    platforms = ["linux/amd64"],
)

### For each oci.pull call, repeat the "name" here to expose them as dependencies.
use_repo(oci, "distroless_base")
```

#### Using WORKSPACE:

```starlark

load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_oci",
    sha256 = "cfea16076ebbec1faea494882ab97d94b1a62d6bcd5aceabad8f95ea0d0a1361",
    strip_prefix = "rules_oci-2.2.1",
    url = "https://github.com/bazel-contrib/rules_oci/releases/download/v2.2.1/rules_oci-v2.2.1.tar.gz",
)

load("@&#8203;rules_oci//oci:dependencies.bzl", "rules_oci_dependencies")

rules_oci_dependencies()

load("@&#8203;rules_oci//oci:repositories.bzl", "oci_register_toolchains")

oci_register_toolchains(name = "oci")

### You can pull your base images using oci_pull like this:
load("@&#8203;rules_oci//oci:pull.bzl", "oci_pull")

oci_pull(
    name = "distroless_base",
    digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86",
    image = "gcr.io/distroless/base",
    platforms = [
        "linux/amd64",
        "linux/arm64",
    ],
)
```

#### What's Changed

- Fix compatibilty with symbolic macros by
[@&#8203;dzbarsky](https://redirect.github.com/dzbarsky) in
[https://github.com/bazel-contrib/rules_oci/pull/759](https://redirect.github.com/bazel-contrib/rules_oci/pull/759)
- Handle not-logged-in public repos with credsStore by
[@&#8203;fahhem](https://redirect.github.com/fahhem) in
[https://github.com/bazel-contrib/rules_oci/pull/731](https://redirect.github.com/bazel-contrib/rules_oci/pull/731)

#### New Contributors

- [@&#8203;dzbarsky](https://redirect.github.com/dzbarsky) made their
first contribution in
[https://github.com/bazel-contrib/rules_oci/pull/759](https://redirect.github.com/bazel-contrib/rules_oci/pull/759)
- [@&#8203;fahhem](https://redirect.github.com/fahhem) made their first
contribution in
[https://github.com/bazel-contrib/rules_oci/pull/731](https://redirect.github.com/bazel-contrib/rules_oci/pull/731)

**Full Changelog**:
bazel-contrib/rules_oci@v2.2.0...v2.2.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/lalten/rules_appimage).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Feb 3, 2025
1 parent c3e92e4 commit 3263034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dev_pip.parse(
use_repo(dev_pip, "rules_appimage_py_deps")

bazel_dep(name = "container_structure_test", version = "1.19.1", dev_dependency = True)
bazel_dep(name = "rules_oci", version = "2.2.0", dev_dependency = True)
bazel_dep(name = "rules_oci", version = "2.2.1", dev_dependency = True)
bazel_dep(name = "rules_pycross", version = "0.7.1", dev_dependency = True)
bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True)

Expand Down

0 comments on commit 3263034

Please sign in to comment.