Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
59136ac
remove `stamp_inputs` from PushInfo provider
uajith Apr 11, 2022
758bbc3
Remove use of PushInfo(tag) form push.bzl (#90)
uajith Apr 22, 2022
dc8ba6e
add Bazel 5 to CI (#92)
kzadorozhny Apr 22, 2022
1863d03
Update builder image (#93)
apesternikov Apr 22, 2022
5c706a0
fasterci on PR (#95)
apesternikov Apr 29, 2022
fd76291
Add Skydio to the list of adopters
kzadorozhny May 7, 2022
18ac32a
symlink to config (#98)
apesternikov Oct 17, 2022
f98b402
Update k8s_test_namespace.sh.tpl (#100)
apesternikov Oct 17, 2022
0782a1d
gcp oauth in sidecar (#101)
apesternikov Oct 17, 2022
6db602b
upgrade bazel deps (#102)
apesternikov Oct 18, 2022
41424ff
Update setup instructions (#103)
apesternikov Oct 18, 2022
5d2eda5
renaming master branch
kzadorozhny Oct 19, 2022
c638e7a
release pipeline (#104)
kzadorozhny Oct 19, 2022
c7dc4ad
(13:15:04) DEBUG: Rule 'k8s_test' indicated that a canonical reproduc…
apesternikov Oct 19, 2022
7ca096c
Update config.yaml (#106)
apesternikov Nov 11, 2022
c736472
parametrize dependency search (#107)
apesternikov Nov 12, 2022
5659063
k8s_deploy api for images already in registry (#108)
apesternikov Nov 22, 2022
041ba72
correct handling of deps runtimes (#109)
apesternikov Nov 28, 2022
1d4fe53
Update workspace_snippet.sh (#110)
apesternikov Nov 28, 2022
1cbc2e9
add missing name suffix configuration (#111)
kzadorozhny Nov 30, 2022
1623bb7
fix dep list query string construction (#112)
kzadorozhny Dec 2, 2022
066b469
rules_go v0.37.0 (#114)
kzadorozhny Dec 7, 2022
37bef10
--dry_run flag (#115)
apesternikov Dec 14, 2022
cf3e17c
proper runfiles path just in case binary was called directly (#116)
apesternikov Dec 14, 2022
b832f7d
secrets example (#118)
apesternikov Dec 21, 2022
b639847
strip @ from a generated target name (#123)
apesternikov Feb 22, 2023
6ffcfb3
use bash runfiles library to find location of the kustomize binary (#…
apesternikov Feb 23, 2023
e64798e
ap/update deps (#125)
apesternikov Feb 23, 2023
b7ac814
fasterci in adopters (#126)
apesternikov Feb 23, 2023
5118397
handle runfiles (#127)
apesternikov Feb 28, 2023
eafc9c3
Fix cluster override in k8s_test_setup (#129)
harjsing7 Mar 15, 2023
00b155e
Handle case where returned object from a Watch is not a Pod (#132)
harjsing7 Apr 17, 2023
64c0dc5
Allow to set pull request body when defined (#137)
eko Jul 5, 2023
dbdcf39
dont skip filtering on static namespace tests (#143)
michaelschiff Aug 4, 2023
5a9f3f7
resolver: Don't crash on nil objs (#142)
DolceTriade Aug 28, 2023
e7c85a9
Add support of bazel tags to rules_gitops (#148)
bhmiller Sep 7, 2023
0483ded
Changes to prer to allow setting prTitle and prBody did not correctly…
michaelschiff Oct 5, 2023
f2b3100
enable stamping if common_labels or common_annotations contains "{" m…
michaelschiff Oct 23, 2023
962e0e3
Add renovate.json (#151)
renovate[bot] Apr 8, 2024
00a761c
fix(deps): update module github.com/golang/protobuf to v1.5.4 (#152)
renovate[bot] Apr 8, 2024
eaac343
chore(deps): update dependency bazel to v6.5.0 (#153)
renovate[bot] Apr 8, 2024
cd1469a
Upgrade minor Bazel versions in CI (#159)
kzadorozhny Apr 8, 2024
0c304cf
chore(deps): update dependency bazel_gazelle to v0.36.0 (#155)
renovate[bot] Apr 8, 2024
61b0bc3
chore(deps): update actions/cache action to v4 (#165)
renovate[bot] Apr 8, 2024
7342e7a
Renovate configuration
kzadorozhny Apr 9, 2024
1656f16
chore(deps): update dependency com_github_bazelbuild_buildtools to v6…
renovate[bot] Apr 9, 2024
932111b
chore(deps): update dependency bazel_skylib to v1.5.0 (#156)
renovate[bot] Apr 9, 2024
d74c783
Renovate configuration
kzadorozhny Apr 9, 2024
9331812
Renovate configuration
kzadorozhny Apr 9, 2024
1dea119
Disable FasterCI for Renovate PRs
kzadorozhny Apr 9, 2024
247f857
buildifier fix
kzadorozhny Apr 9, 2024
93544cc
handle image push errors (#178)
kzadorozhny May 24, 2024
fa05503
Add support for running Kustomize on Linux ARM64 (#176)
ysinjab Jun 4, 2024
f3ae719
use lightweight checkout (#179)
kzadorozhny Jun 21, 2024
6c99281
track branches before fetch (#180)
kzadorozhny Jun 25, 2024
5bcb981
Add support for incremental stamping (#175)
randrei-adobe Jul 8, 2024
b9c9d69
Update CI image (#185)
kzadorozhny Jun 24, 2025
83e80a5
Fix runfiles merging for `@bazel_tools//tools/bash/runfiles` (#184)
fmeum Jun 24, 2025
9f9de1d
Support targeting the root folder of the target GitOps directory usin…
kzadorozhny Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
build --nolegacy_external_runfiles
build --verbose_failures
test --test_output=errors

# required for rules_docker 0.15
common --incompatible_restrict_string_escapes=false
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
6.5.0
21 changes: 12 additions & 9 deletions .fasterci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@
workflows:

- &build_workflow
name: Faster CI / build (4.0.0)
image: us.gcr.io/fasterci/bazelbuilder:cd990e6
name: Faster CI / build (6.5.0)
env:
USE_BAZEL_VERSION: "6.5.0"
image: us.gcr.io/fasterci/bazelbuilder:5e59f651dbb5
on:
push:
branches:
- main
pull_request:
branches:
- "**"
from-branches-ignore:
# will ignore PRs from renovate bot, since the bot is not a repository collaborator
- "renovate/**"
steps:
- name: Build & test
bazel:
Expand All @@ -27,11 +35,6 @@ workflows:
run: bazel run //:buildifier-check

- <<: *build_workflow
name: Faster CI / build (3.7.1)
env:
USE_BAZEL_VERSION: "3.7.1"

- <<: *build_workflow
name: Faster CI / build (4.2.1)
name: Faster CI / build (5.4.1)
env:
USE_BAZEL_VERSION: "4.2.1"
USE_BAZEL_VERSION: "5.4.1"
19 changes: 10 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name: CI
on:
push:
branches:
- master
- main
- feature/*
pull_request:
branches: [master]
branches: [main]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
strategy:
matrix:
bazel-version:
- 3.7.1
- 4.0.0
- 6.5.0
- 5.4.1
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
- name: Mount Bazel cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cache/bazel
key: bazel-${{ matrix.bazel-version }}-${{ github.sha }}
Expand All @@ -32,11 +33,11 @@ jobs:
run: |
TOOLS_DIR="${HOME}/.cache/tools"
mkdir -p "${TOOLS_DIR}/bin/"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.14.0/bazelisk-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/bazel"
curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier"
chmod +x "${TOOLS_DIR}/bin/buildifier"
curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64"
curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.29.0/kind-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/kind"
echo "${TOOLS_DIR}/bin" >> $GITHUB_PATH
- name: Setup kind cluster
Expand Down
87 changes: 87 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Cut a release whenever a new tag is pushed to the repo.
# You should use an annotated tag, like `git tag -a v1.2.3`
# and put the release notes into the commit message for the tag.
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-24.04
env:
USE_BAZEL_VERSION: 6.5.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Mount Bazel cache
uses: actions/cache@v4
with:
path: ~/.cache/bazel
key: bazel-${{ env.USE_BAZEL_VERSION }}-${{ github.sha }}
restore-keys: |
bazel-${{ env.USE_BAZEL_VERSION }}-
bazel-
- name: Setup build tools
run: |
TOOLS_DIR="${HOME}/.cache/tools"
mkdir -p "${TOOLS_DIR}/bin/"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.14.0/bazelisk-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/bazel"
curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier"
chmod +x "${TOOLS_DIR}/bin/buildifier"
curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.29.0/kind-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/kind"
echo "${TOOLS_DIR}/bin" >> $GITHUB_PATH
- name: Setup kind cluster
run: |
./create_kind_cluster.sh
- name: Build
run: |
bazel build //...
- name: Check
# run downloaded version of buildifier to reduce uncached build times
# see: bazel run //:buildifier-check
run: |
find . -type f \(\
-name '*.bzl' \
-o -name '*.sky' \
-o -name BUILD \
-o -name BUILD.bazel \
-o -name WORKSPACE \
-o -name WORKSPACE.bazel \
\) | xargs buildifier \
-mode=check \
-lint=warn \
--warnings=-module-docstring,-function-docstring,-function-docstring-header,-function-docstring-args,-function-docstring-return,-print \
|| {
buildifier_exit_code=$?
echo "Error: failed buildifier checks. Please run \"bazel run //:buildifier-fix\" and commit the changes."
exit $buildifier_exit_code
}
- name: Test
run: |
bazel test //...
- name: Build examples
run: |
cd examples
bazel build //...
- name: Test examples
run: |
cd examples
bazel test //...
- name: E2E
run: |
cd examples
./e2e-test.sh
- name: Prepare workspace snippet
run: .github/workflows/workspace_snippet.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
26 changes: 26 additions & 0 deletions .github/workflows/workspace_snippet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

TAG=${GITHUB_REF_NAME}
PREFIX="rules_gitops-${TAG:1}"
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')

cat << EOF

WORKSPACE snippet:

\`\`\`starlark

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

http_archive(
name = "com_adobe_rules_gitops",
sha256 = "${SHA}",
strip_prefix = "${PREFIX}",
urls = ["https://github.com/adobe/rules_gitops/archive/refs/tags/${TAG}.tar.gz"],
)
EOF

awk '/---SNIP---/{f=1;next}/---END_SNIP---/{f=0}f' examples/WORKSPACE
echo "\`\`\`"
5 changes: 3 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

# gazelle:build_tags darwin,linux
# gazelle:exclude examples

licenses(["notice"]) # Apache 2.0
# gazelle:proto disable_global

load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

licenses(["notice"]) # Apache 2.0

exports_files(["WORKSPACE"])

# gazelle:prefix github.com/adobe/rules_gitops
Expand Down
Loading