Commit Graph

49 Commits

Author SHA1 Message Date
Avi Deitcher
7a129b6e8d
bump golangci-lint to v2.0.2 and update all lint issues (#4116)
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-04-09 17:53:20 +03:00
Avi Deitcher
5dbd8082fb
bump golangci-lint-action (#4109)
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-02-23 16:40:29 +02:00
Avi Deitcher
67e9e22a36 restructure logging
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-10-01 12:50:43 +03:00
Avi Deitcher
e6ac960951 make targets separated by OS
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-07-11 18:09:48 +02:00
Avi Deitcher
7acc8262f2 separate release builds of macOS CGO from others
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-07-11 16:55:51 +02:00
Avi Deitcher
4c3d189a1a bump actions/setup-go to v5 and go-version to 1.22.3
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-06-11 15:20:58 +03:00
Avi Deitcher
5299f948e3 use proper path for github-script properties
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-04-28 15:56:53 +03:00
Avi Deitcher
c32c74bc1d github script v7
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-04-28 14:43:52 +03:00
Avi Deitcher
2578ae23c6 explicitly use GITHUB_TOKEN for actions script
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-04-28 12:58:10 +03:00
Avi Deitcher
04792e0d44 bump actions to v4 to avoid deprecation
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-04-25 11:44:38 +03:00
Avi Deitcher
c3b151ea42 missing pipe in package_release workflow
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-11 17:21:22 +02:00
Avi Deitcher
88ff3ac7a7 fix pkg-release flow for building linuxkit
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-11 16:47:12 +02:00
Avi Deitcher
15730ea617 ensure package release flow is picked up
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-11 14:19:07 +02:00
Avi Deitcher
14f5433943 fix pkg release action workflow
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-11 11:34:34 +02:00
Avi Deitcher
4df07ddb6e add support for pkg release tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-11 10:07:43 +02:00
Avi Deitcher
2389221c4a make kernel read/build and check part of CI
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-03-05 17:49:28 +02:00
Avi Deitcher
782a38dcae report package cache contents at each stage
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-12-03 13:25:46 +02:00
Avi Deitcher
7bba32e56c
bump actions artifact upload/download and cache versions (#3901)
Signed-off-by: Avi Deitcher <avi@deitcher.net>

Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-01-22 14:08:25 +02:00
Avi Deitcher
ac8c24934c
Test pkgs ci makefile (#3892)
* simplify test/pkg/Makefile

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* ensure pkg and test/pkg built before downstream workflows in CI

Signed-off-by: Avi Deitcher <avi@deitcher.net>

Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-01-04 11:52:48 +02:00
Petr Fedchenkov
893bee6b81
Fix return code of rungetty.sh (#3881)
* Fix return code of rungetty.sh

In case of INITGETTY defined we will return exit code 1 which is not
expected

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>

* Update getty sha

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>

* restore package cache in LinuxKit Build Tests

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-12-15 12:12:19 +02:00
Avi Deitcher
cf7d83bb13 add sharding option
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-10-30 11:16:42 +02:00
Avi Deitcher
7c2b9b3b3a move rtf commands from GHA into make test; remove unused artifacts
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-10-24 12:50:28 +03:00
Avi Deitcher
6217565c89 add go vet and go lint
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-10-11 10:16:03 +03:00
Avi Deitcher
ebb5ded10b
Merge pull request #3840 from dgageot/release-notes-workflow
Auto generate Release Notes
2022-10-09 15:55:31 +03:00
David Gageot
f2d70722c4
Generate Release Notes
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 22:07:17 +02:00
David Gageot
4bc274154a
Fix workflow's name
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 21:01:29 +02:00
Avi Deitcher
e25cc72531
Merge pull request #3835 from dgageot/release-workflow
Add an automated release workflow
2022-10-08 21:13:53 +03:00
David Gageot
c75bada86b
Add release workflow
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-07 13:00:46 +02:00
David Gageot
95d4b34b83
Add a GHA target for darwin/arm64
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-07 10:29:17 +02:00
Avi Deitcher
bc5084df99 verbosity for pkg build and error catching
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-08-14 11:06:02 -07:00
Avi Deitcher
de1d8cdeda add support for virtualization framework
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-07-22 16:55:47 +03:00
Avi Deitcher
9c673d5650 login to docker hub before publishing
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-05-29 14:52:21 -07:00
Avi Deitcher
a848205f9d ensure bin/ dir exists, parametrize linuxkit filename
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-05-29 10:27:55 -07:00
Avi Deitcher
830ac050c6 download artifact from other workflow
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-05-25 09:56:08 -10:00
Avi Deitcher
cd5cea8c02 remove need for maintainers to build packages
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-05-23 20:24:07 -10:00
Dave Tucker
9b8ae51481 ci: Ensure binfmt is set up for arm64. Skip s390x
s390x emulation is broken. All emulated builds fail with.
Illegal Instruction and/or Segfaults.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2022-01-11 21:11:49 +00:00
Avi Deitcher
0660ace86f extract hard-coded default image builders into file
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-11-04 14:51:15 -04:00
Dave Tucker
6334f0dde5 ci: Cache Package Builds
This commit adds the default linuxkit cache directory to the
GitHub Actions cache. This will ensure that we don't pull images
that already exist in the cache, or build them if we've already
done so. It should speed up CI.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-01 18:06:37 +01:00
Dave Tucker
93ada489f9 make: Fix for local builds outside of GOPATH
Go can be weird about tools having to run in a directory with
go.mod. This commit moves the linuxkit makefile to the same
directory as the code.

It also changes the semantics of the local-build target.
You can now use STATIC=0 for dynamic builds or PIE=1 to
use --buildmode=pie. The binaries we were producing in
local-static weren't actually static so I fixed that too

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-04-30 09:31:00 +01:00
Rolf Neugebauer
ffe5dedb0a ci: Fix multi-arch builds
- Introduce separate os/arch to the matrix
- Pass os/arch to the local build
- Switch to upload-artifact@v0 and cache@v2
- Fetch linuxkit binary from artefacts rather than using cache
- Add some debug (print file and hashes)

While at it, add some debug for the generated artefacts.

fixes https://github.com/linuxkit/linuxkit/issues/3522

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2021-04-04 10:46:07 +01:00
Avi Deitcher
bc06558e26 fix deprecation of set-env
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-11-24 15:36:36 +02:00
Avi Deitcher
fbe9b98d4d match go version in CI to version in go-compile
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-04-19 11:22:32 +03:00
Dave Tucker
0fb8b116bb actions: Clean Up Post Merge
This commit moves the linuxkit binary in to /usr/local/bin.
It also removes trailing spaces (oops)

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2020-01-21 12:25:26 +00:00
Dave Tucker
c1644b1d02 actions: Install RTF in /usr/local/bin
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2020-01-14 23:40:54 +00:00
Dave Tucker
f5da1680a1 GitHub Actions: Implement Caching
This commit uses the GitHub Actions cache to ensure that the `rtf`
binary can be re-used between runs if it hasn't changed.
It also caches the linuxkit binaries for use in future stages.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2020-01-14 23:40:54 +00:00
Dave Tucker
a98046999f Add GitHub Action Workflow for CI
This commit adds a GitHub Actions workflow to replace both CircleCI and
LinuxKit CI.

It will build the Linuxkit binary, run tests and upload artifacts

It replaces the Integration Tests that are run by Linuxkit CI via
the make ci or make ci-pr targets with multiple sets of Integration
Tests that are run in parallel.

It does not yet test GCP. The GCP test in LinuxKit CI could be moved to RTF

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2020-01-14 23:40:54 +00:00
Justin Cormack
29e15c35f2 Add code of conduct link to Github recommended location
See recommendations at https://help.github.com/articles/adding-a-code-of-conduct-to-your-project/

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-22 11:31:02 +00:00
Justin Cormack
e08f3a9a3f Change docker/linuxkit to linuxkit/linuxkit
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-04-17 18:13:28 -05:00
Sebastiaan van Stijn
6d1ea86da6 add license, and files for opensourcing
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-04-16 18:23:23 -05:00