diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..d0a66f6f41bf93e869278ae8071796c687b16197 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,83 @@ +# [1.0.0-beta.3](https://git.gitlab.arm.com/ci/component/bazelisk/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-02-24) + +### Bug Fixes + +- move run commands copying into `before_script` ([5f26233](https://git.gitlab.arm.com/ci/component/bazelisk/commit/5f26233b79ebb92d89cd66a99bdf85900e0752e8)) +- remove `diff` ([eda49db](https://git.gitlab.arm.com/ci/component/bazelisk/commit/eda49dbb2d5758aed02a6e1cb6e0c3a6ca850af0)) +- upgrade `bazelisk@1.19.0` ([9d32020](https://git.gitlab.arm.com/ci/component/bazelisk/commit/9d320206a322535ccd54a0ade4533b948fbc4985)) +- upgrade to `linux-libc-dev@6.1.76` ([55c4635](https://git.gitlab.arm.com/ci/component/bazelisk/commit/55c463522383c05d9816bcc522bf9da15da53e97)) + +### chore + +- remote GitLab 16.5 workaround ([16f27f9](https://git.gitlab.arm.com/ci/component/bazelisk/commit/16f27f9faeb130355babcb576adc592873c03be9)) + +### BREAKING CHANGES + +- Template no longer supports GitLab less than 16.5 + +The `bazelisk/template.yml` file has been removed which was required +for the CI component to be picked up on the experimental implementation +in 16.4 and less. + +- `diff` has been removed. + +Use the hermetic [`rules_diff`][rules_diff] Bazel module. + +[rules_diff]: https://registry.bazel.build/modules/rules_diff + +# [1.0.0-beta.2](https://git.gitlab.arm.com/ci/component/bazelisk/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-01-04) + +### Bug Fixes + +- add stage to `.bazelisk` job ([8282d71](https://git.gitlab.arm.com/ci/component/bazelisk/commit/8282d7129fad6a36d28f1c7dc78364161a109562)) +- commit to new component directory structure ([c5ced29](https://git.gitlab.arm.com/ci/component/bazelisk/commit/c5ced293dbed2c4371f544c529130a1b14c86f1d)) +- pin bazel version ([f992954](https://git.gitlab.arm.com/ci/component/bazelisk/commit/f992954e8ad96bab04d5b61736389b2956cbb859)) +- **release:** correct JavaScript `Object.freeze` usage ([38465a1](https://git.gitlab.arm.com/ci/component/bazelisk/commit/38465a17485a0f1d0bd16c8c8e372d60a556b15e)) + +### BREAKING CHANGES + +- The component must be included via the `bazelisk` name. + +The nameless include in `1.0.0-beta.1` is no longer supported. + +``` +include: + - component: "${CI_SERVER_HOST}/ci/component/bazelisk@1.0.0-beta.1" +``` + +Add the `/bazelisk` named CI component: + +``` +include: + - component: "${CI_SERVER_HOST}/ci/component/bazelisk/bazelisk@1.0.0-beta.2" +``` + +This is due to GitLab CI components being stabilised and the nameless component +support being removed. + +# 1.0.0-beta.1 (2023-12-20) + +### Bug Fixes + +- upgrade `rules_oci` ([cfd894c](https://git.gitlab.arm.com/ci/component/bazelisk/commit/cfd894cec2f222ea5214f5f1cf98421147ce7b52)) +- upgrade distroless image ([e6fca24](https://git.gitlab.arm.com/ci/component/bazelisk/commit/e6fca24d6fae1ae489a358a3264bba9d9a1dea60)) +- upgrade to `linux-libc-dev@6.1.66` ([32087fc](https://git.gitlab.arm.com/ci/component/bazelisk/commit/32087fcf2bfa5221fca041726f7b60cad71d00cd)) +- use `pushd`/`popd` built-ins. ([83b658d](https://git.gitlab.arm.com/ci/component/bazelisk/commit/83b658d58994943a24267cb1508d1877b2b9b7e5)) + +### Code Refactoring + +- switch to `.bazelisk-fragment` ([7afa43b](https://git.gitlab.arm.com/ci/component/bazelisk/commit/7afa43badf14d986666b8fb6c70ef0e3773b48f7)) + +### Features + +- add rules to enable merged results pipelines ([603b07a](https://git.gitlab.arm.com/ci/component/bazelisk/commit/603b07ab4ac326d21df811de1ffe673c8125a013)) +- all multiple run command environment variable replacements ([f82edd7](https://git.gitlab.arm.com/ci/component/bazelisk/commit/f82edd7b3e314325df49e000d52401e86e93f847)) +- allow replacement of `CI_PROJECT_ID` ([79bc0a5](https://git.gitlab.arm.com/ci/component/bazelisk/commit/79bc0a5cc1cb515ab74ee0c2b7302b3b59420fbd)) +- explicitly set no job dependencies ([5e9bb4c](https://git.gitlab.arm.com/ci/component/bazelisk/commit/5e9bb4c8d9b9f6adfbff6fea0e4e447e7c53a7d3)) +- image build and CI component ([fb002de](https://git.gitlab.arm.com/ci/component/bazelisk/commit/fb002de994aa01efec0543432529241bacd71420)) + +### BREAKING CHANGES + +- `.bazelisk-script` is now `.bazelisk-fragment` + +Update any `!reference[.bazelisk-script, ...]` to `!reference[.bazelisk-fragment, ...]` diff --git a/MODULE.bazel b/MODULE.bazel index fc1e14ed42ca792723e53e36aed24a996ca5bfb3..48051036586d4b120e8c35430a2122ea967422e6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ module( name = "bazelisk", - version = "0.0.0", + version = "1.0.0-beta.3", bazel_compatibility = [ ">=7.0.0", ], diff --git a/templates/bazelisk.yml b/templates/bazelisk.yml index 0bae7faf9ad0f8458f064ee73c3815577afa96dc..d8f6eef73c964eb394cfd1a99b673085f94dc1e5 100644 --- a/templates/bazelisk.yml +++ b/templates/bazelisk.yml @@ -3,7 +3,7 @@ spec: image: default: registry.gitlab.arm.com/ci/component/bazelisk tag: - default: latest + default: 1.0.0-beta.3 stage: default: test src: @@ -43,6 +43,7 @@ spec: - pushd "${ROOT}" - > "$[[inputs.bazelisk]]" "$[[inputs.command]]" "$[[inputs.target]]" + - popd testlogs: # https://gitlab.com/gitlab-org/gitlab/-/issues/19746 - | @@ -60,7 +61,6 @@ spec: mv bazel-testlogs{~,} fi popd - .bazelisk: image: "$[[inputs.image]]:$[[inputs.tag]]" needs: [] @@ -91,3 +91,7 @@ spec: - if: $CI_COMMIT_REF_PROTECTED == "true" - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_FORCE == "true" +spec: + inputs: + tag: + default: 1.0.0-beta.3