38 Commits

Author SHA1 Message Date
CrazyMax
61c3a9e1cd hack: enable SLSA provenance v1 for buildkit and frontend images
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-09-30 13:34:56 +02: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
CrazyMax
93823870f0 ci: set gha cache repository and token
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-06-19 09:56:03 +02:00
CrazyMax
8d0b15f4ec hack: use git context only for upstream repo
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-01-24 08:40:49 +01:00
CrazyMax
a536dea8a6 hack(test): tidy create command and display invoked docker cmds
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-15 08:45:35 +02:00
CrazyMax
d08b9c567e hack: progressFlag set not needed
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-15 08:45:33 +02:00
CrazyMax
df408e7e2d hack: cleanup buildx install
This was useful when Buildx was not available but since
Docker 23 it should always be there.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-15 08:45:33 +02:00
CrazyMax
724c9daf49 ci: set provenance builder-id
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-15 19:09:29 +01:00
CrazyMax
759db15bfd ci: generate provenance and sbom for release-tar
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-15 19:09:29 +01:00
CrazyMax
493a968ca1 hack: cleanup util script
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-13 22:13:48 +01:00
CrazyMax
a0055e01cd ci: opt-in sbom and provenance
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-13 22:13:47 +01:00
CrazyMax
3c1b5a8ed3 hack: add context var
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-18 12:32:10 +01:00
CrazyMax
46422e3aba ci: opt-in buildinfo attrs with output opt
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-01 14:23:48 +01:00
CrazyMax
73f4cb3a47 ci: opt-in buildinfo attrs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-25 20:38:06 +01:00
CrazyMax
b434e7314b ci: fix git protocol
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-02 18:02:32 +01:00
CrazyMax
ec65f412b6 Use gha cache on CI
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-05 10:51:48 +02:00
Akihiro Suda
201ba2b0e3 hack: install buildx in util
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:31:17 +09:00
Akihiro Suda
97b0904bcd hack/util: disallow using DOCKER_BUILDKIT instead of buildx
DOCKER_BUILDKIT CLI is slightly different from buildx.
It is hard to maintain DOCKER_BUILDKIT as a buildx alternative.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:28:46 +09:00
CrazyMax
9ed0d25af2 Merge branch 'master' into remove-travis 2020-11-30 10:17:25 +01:00
CrazyMax
1ac6bd4cbc Fix CI cache
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-29 06:45:39 +01:00
CrazyMax
00570378a8 Remove travis support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 19:02:04 +01:00
Akihiro Suda
24affe0a40 hack/util: remove unused buildmode
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-11-26 13:43:43 +09:00
CrazyMax
d754dda292 Refactor frontend for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 02:13:18 +01:00
CrazyMax
6b32ab4494 Refactor cross for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-23 19:27:58 +01:00
CrazyMax
4edf93254e Merge branch 'master' into ghactions-test 2020-11-22 05:24:32 +01:00
CrazyMax
e22c19d77f Refactor test for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 04:04:01 +01:00
CrazyMax
b4bdad2bd1 Refactor generators for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 01:34:36 +01:00
CrazyMax
a571db42a3 Refactor validate for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-21 21:36:54 +01:00
Tonis Tiigi
8c55320f45 hack: add shfmt
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-24 21:17:54 -07:00
Paul "TBBle" Hampson
bbd372d00e Correctly build forks in Travis
The CI script goes looking for the branch to which a commit was pushed,
but was applying the branch name to moby/buildkit even if being built on
a different fork.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
2020-07-17 02:35:16 +10:00
Paul "TBBle" Hampson
539b08cd5d Remove bashism from shared shell script
This file is consumed by both validate-vendor (inside an Alpine-based
Docker container where bash is not installed), and the other scripts.

Apart from validate-vendor, all the other scripts in hack/ use bash.

Fixes CI logging a complaint:
> ./hack/validate-vendor: 31: [: pull_request: unexpected operator

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
2020-01-30 00:20:51 +11:00
Akihiro Suda
e2ea141383 hack: remove legacy Dockerfile
Fix #1022

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-13 00:10:27 +09:00
Tonis Tiigi
91198c3188 hack: fix unbound ci vars
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-09-20 14:53:28 -07:00
Tonis Tiigi
2cea1107d6 travis: add ci caching
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-17 09:13:06 -07:00
Tonis Tiigi
216a54283b hack: fix buildkit detection of sh
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-03-10 23:48:12 -07:00
Tibor Vass
175506ff7f hack: update scripts to be go mod compatible
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-01-31 22:44:47 +00:00
Tonis Tiigi
ddfb7f77c9 hack: update test dockerfiles to buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-10-10 23:26:05 -07:00
Tonis Tiigi
1dceb3b060 hack: refactor lint to use buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-09-17 10:35:59 -07:00