Commit Graph

39 Commits

Author SHA1 Message Date
CrazyMax
f3c6fef9b6 hack: switch to gomod-updates
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-05-13 13:52:17 +02:00
CrazyMax
71068191db hack: use bake to build the dockerfile frontend
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-11-25 18:55:48 +01:00
CrazyMax
11352b4067 hack: enable oci-artifact for buildkit and frontend images
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-11-13 18:22:40 +01:00
Jonathan A. Sternberg
9324520e88 dockerfile: promote RUN --security flag from labs
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-11-05 14:46:42 -06:00
Jonathan A. Sternberg
98d0a0a210 dockerfile: promote --parents flag from labs
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-11-05 12:52:16 -06:00
CrazyMax
1fa57ee945 hack: use bake to build buildkit images
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-10-13 17:41:15 +02:00
Jonathan A. Sternberg
5f01809fec dockerfile: promote --exclude flag from labs
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-09-22 12:41:19 -05:00
CrazyMax
060be8484d hack: modernize-fix bake target
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-09-09 14:00:26 +02:00
CrazyMax
c71ed01f8e ci(validate): split by platform
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-05-23 09:28:05 +02:00
Tonis Tiigi
f1f56c2b77 golangci-lint: v2 upgrade
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-05-02 12:19:17 -07:00
CrazyMax
73069bdd4f update bake-action to v6
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-08 13:42:34 +01:00
Tonis Tiigi
69034c34df test: allow testing frontends from different version
This allows running Dockerfile tests so that the Dockerfile
version and the BuildKit version are from different commits so
that we can test that old Dockerfile releases remain compatible
with the latest BuildKit.

The tests are based on the commit of the Dockerfile frontend as
we can't expect that new test would work on old frontends. In future
we might consider doing it the other way as well but then we need
a way to mark tests that can be ignored if they are not expected to
pass because of a new feature dependency.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-12-13 20:14:17 -08:00
Tonis Tiigi
b8f3379ae9 ci: enable validating all Dockerfiles
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-08-13 11:13:33 +03:00
CrazyMax
d138ca0f8a govulncheck to report known vulnerabilities
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-07-30 12:55:38 +02:00
CrazyMax
7283eaba0d dockerfile: generate lint rules documentation
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-06-06 15:11:27 -07:00
Tonis Tiigi
54b2474063 hack: track helper process coverage in integration tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-05-17 19:42:17 -07:00
Tonis Tiigi
d8c2b2df1e hack: add validation for golangci config
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-05-14 11:44:28 -07:00
Tonis Tiigi
cdb90c0f4f hack: add gopls analyzers
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-04-09 07:23:16 -07:00
Tõnis Tiigi
c8cf831db9 Merge pull request #4561 from leandrosansilva/feature/exclude-pattern-on-dockerfile
Dockerfile: Allow files to be excluded from cache on COPY and ADD commands
2024-02-23 16:03:45 -08:00
CrazyMax
b5e50a8d64 dockerfile: binaries-for-test target
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-20 09:06:31 +01:00
Leandro Santiago
fc23da5b97 Move Dockerfile copy/add --exclude implementation to Labs
Signed-off-by: Leandro Santiago <leandrosansilva@gmail.com>
2024-02-15 16:35:01 +01:00
CrazyMax
9b86f3bb2c archutil: validate
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-09 17:56:51 +01:00
CrazyMax
a6273a5e0d archutil: move dockerfile to hack and update scripts
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-09 17:56:50 +01:00
CrazyMax
501e0a005c lint: set proper cache key for golangci-lint target
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-12-15 10:38:24 +01:00
CrazyMax
d815cb62c7 enable golangci-lint for supported platforms
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-11-09 13:08:43 +01:00
Tonis Tiigi
dce051940e dockerfile: add --parents flag for COPY
Co-Authored-By: Dmitrii Efimov <5221640+DYefimov@users.noreply.github.com>
Co-Authored-By: Justin Chadwell <me@jedevc.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2023-10-11 09:52:01 +01:00
CrazyMax
341d6b300f create integration-tests bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-15 08:45:34 +02:00
Justin Chadwell
04c7b9d8df ci: add protolint validation
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-08-10 13:11:18 +01:00
Justin Chadwell
f663123fc3 hack: add linting for multiple combinations of build tags
We can't just add new build-tags, since this tests only the combination
of all of the provided tags.  For the instance of nydus, we need to test
with *and* without the build tag.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-07-27 10:07:47 +01:00
CrazyMax
eb27651a12 dockerfile: mod-outdated target to check modules updates
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-29 23:03:25 +02:00
Justin Chadwell
bb503ddd80 docs: add auto-generated sections to buildctl.md
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-03-27 16:23:50 +01:00
CrazyMax
e4ff5e2823 hack: remove build_ci_first_pass script
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-03-13 12:32:53 +01:00
CrazyMax
de53f65510 hack: binaries and cross bake targets
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-03-13 11:23:27 +01:00
CrazyMax
0582a1aac2 hack: shfmt bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:30 +01:00
CrazyMax
d2a4031a05 hack: generated-files bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:30 +01:00
CrazyMax
d31e77ff3c hack: doctoc bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
c8880411ce hack: lint bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
416883ff27 hack: authors Dockerfile and bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
1b721f4b3b hack: bake definition with vendor targets
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00