Skip to content

Commit 81195b4

Browse files
committed
feat: setup ca-certificates and build images with steiger
1 parent 7373296 commit 81195b4

11 files changed

Lines changed: 17750 additions & 27187 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,16 @@ jobs:
2323
run: |
2424
echo "${{ secrets.BUILDBUDDY_BAZELRC }}" > .bazelrc.user &&
2525
echo "build --compilation_mode=opt" >> .bazelrc.user
26-
- name: Set up Docker Context for Buildx
27-
id: buildx-context
28-
run: docker context create builders || true
26+
- name: Setup Steiger
27+
run: |
28+
curl -Lo steiger https://github.com/brainhivenl/steiger/releases/download/v0.0.1/steiger-x86_64-unknown-linux-gnu &&
29+
sudo install steiger /usr/local/bin/ &&
30+
rm steiger
2931
- name: Login to GitHub Container Registry
3032
uses: docker/login-action@v3
3133
with:
3234
registry: ghcr.io
3335
username: ${{ github.actor }}
3436
password: ${{ secrets.GITHUB_TOKEN }}
35-
- name: Push image [nginx]
36-
run: bazel run nginx:push -- -t latest -r ghcr.io/brainpodnl/distroless-php/nginx
37-
- name: Push image [php-fpm:7.2]
38-
run: bazel run php:php-fpm-7.2_push -- -t 7.2 -r ghcr.io/brainpodnl/distroless-php/php-fpm
39-
- name: Push image [php-fpm:7.4]
40-
run: bazel run php:php-fpm-7.4_push -- -t 7.4 -r ghcr.io/brainpodnl/distroless-php/php-fpm
41-
- name: Push image [php-fpm:8.3]
42-
run: bazel run php:php-fpm-8.3_push -- -t 8.3 -r ghcr.io/brainpodnl/distroless-php/php-fpm
43-
- name: Push image [php-fpm:8.4]
44-
run: bazel run php:php-fpm-8.4_push -- -t 8.4 -r ghcr.io/brainpodnl/distroless-php/php-fpm
37+
- name: Build and push
38+
run: steiger build --repo ghcr.io/brainpodnl/distroless-php

MODULE.bazel

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ module(name = "distroless-php")
44

55
bazel_dep(name = "rules_oci", version = "2.2.6")
66
bazel_dep(name = "rules_pkg", version = "1.1.0")
7-
bazel_dep(name = "platforms", version = "0.0.11")
7+
bazel_dep(name = "platforms", version = "1.0.0")
88
bazel_dep(name = "toolchains_llvm", version = "1.4.0")
9-
bazel_dep(name = "rules_distroless", version = "0.4.2")
10-
bazel_dep(name = "aspect_bazel_lib", version = "2.16.0")
11-
bazel_dep(name = "chrome-linux-sysroot", version = "0.0.1")
9+
bazel_dep(name = "rules_distroless", version = "0.5.3")
10+
bazel_dep(name = "aspect_bazel_lib", version = "2.21.1")
11+
bazel_dep(name = "chrome-linux-sysroot", version = "0.0.3")
1212

13-
git_override(
14-
module_name = "rules_distroless",
15-
commit = "f994712f6bd573b3d50b207ae5fa3df077caed67",
16-
remote = "https://github.com/GoogleContainerTools/rules_distroless.git",
17-
)
13+
# git_override(
14+
# module_name = "rules_distroless",
15+
# commit = "f994712f6bd573b3d50b207ae5fa3df077caed67",
16+
# remote = "https://github.com/GoogleContainerTools/rules_distroless.git",
17+
# )
1818

1919
PHP_VERSIONS = [
2020
"7.2",
@@ -23,6 +23,14 @@ PHP_VERSIONS = [
2323
"8.4",
2424
]
2525

26+
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
27+
http_archive(
28+
name = "ca-certificates",
29+
build_file_content = 'exports_files(["data.tar.xz", "control.tar.xz"])',
30+
sha256 = "ef590f89563aa4b46c8260d49d1cea0fc1b181d19e8df3782694706adf05c184",
31+
urls = ["https://snapshot.debian.org/archive/debian/20250827T085636Z/pool/main/c/ca-certificates/ca-certificates_20250419_all.deb"],
32+
)
33+
2634
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
2735
llvm.toolchain(
2836
name = "llvm_toolchain",

MODULE.bazel.lock

Lines changed: 93 additions & 13233 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)