Commit graph

40 commits

Author SHA1 Message Date
Gerald Pinder
19c93ce742 fix: Put export script in own image
HEREDOC support for podman doesn't work exactly 1-1 with Dockerfiles. This fix gives the export script its own image that we mount.
2024-03-27 00:08:58 -04:00
Gerald Pinder
ab11362a0d
fix: Allow user supplied registry to be set in the template (#135) 2024-03-25 20:27:34 -04:00
Gerald Pinder
5601a27491 chore: Don't use docker driver for buildx job on main 2024-03-24 11:23:02 -04:00
Gerald Pinder
783ac2c3fb chore: Enable cache builds on main branch 2024-03-23 18:33:34 -04:00
Gerald Pinder
7c34d0c5a8
fix: Allow docker driver to properly use cache (#126)
This fix involves creating a new function for the `BuildDriver` trait
called `build_tag_push`. In order to get the proper logic in place to
make use of `docker buildx`, I had to create a separate function that
would construct the build command to include all of the tags necessary
for pushing. A default implementation of `build_tag_push` will be used
for `podman` and `buildah` which was originally from the build command's
functions. Now that we have custom logic for docker builds, we can take
advantage of using the GitHub cache features without having the `--load`
arg which had a big negative effect on build times. We can now also use
docker for creating local `oci-archive` tarballs for local rebasing.
Making use of the `oci-archive` will require the user to create a
`docker-container` builder as it is not supported on the standard
`docker` builder.

https://docs.docker.com/build/exporters/oci-docker/
2024-03-19 16:51:09 -04:00
Hikari
580c3d6ce7
fix: use container skopeo (#110)
the `os_version` is defaulting to the `image_tag` inside containers and
causing our template to use latest tag

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
2024-03-11 23:23:42 +00:00
Gerald Pinder
c084592934 fix: Checkout proper versions when building on main vs a PR 2024-03-11 19:16:30 -04:00
Gerald Pinder
bf6ce3f650 chore: Setup build concurrency to reduce number of simultaneous builds on a PR 2024-03-09 12:29:33 -05:00
Gerald Pinder
3a2353923d chore: Update builds to use different satellites and have integration tests on their own job 2024-03-06 15:08:16 -05:00
Tulili
80958f60a6
feat: add flakehub entry + nix flake (#109)
Title! This PR should add a Flakehub entry and a Nix flake for this
project :>

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
2024-03-05 21:34:29 +00:00
Gerald Pinder
de49037330
fix: Remove check for specific branches for signing (#114) 2024-03-05 09:18:43 -05:00
Gerald Pinder
0ba78fab32
refactor: Update build command to use BuildStrategy (#88) 2024-03-01 11:18:02 -06:00
Gerald Pinder
0fd06cacd7 fix: COPY yq into final image for modules 2024-02-26 09:27:12 -05:00
Gerald Pinder
2a85c2732b chore: Fix integration-tests for forks 2024-02-19 20:52:20 -05:00
Gerald Pinder
fc489eca32 chore: Run integration tests on a separate satellite to keep build cache free 2024-02-19 14:37:55 -05:00
Gerald Pinder
5ce88948e2 chore: Remove unwanted software so we have enough space to run the build for forked PRs 2024-02-14 11:21:36 -05:00
Gerald Pinder
bb7ab8e1a5 chore: Fix build and build-pr not running properly 2024-02-13 22:11:44 -05:00
Gerald Pinder
46700ab794
chore: Create base integration test setup (#55)
This will allow us to create a suite of tests for our new features
rather than using my personal image repo
2024-02-09 11:47:59 -05:00
gerblesh
fe671cdd1a
fix: only use earthly builder if token exists (#53)
This fixes workflow runs from PRs that use forks of the repo and don't
contain the secret for the earthly login
2024-02-08 02:15:26 +00:00
Gerald Pinder
9d117b5c5d fix: Remove redundant
earthly setup
2024-02-03 14:44:54 -05:00
Gerald Pinder
cd1e43b0c3
chore: Setup earthly satellite building (#29)
- Builds on main and tags will use the `medium` satellite that uses `x4`
rate on build minutes
  - This gives us larger cache and more memory
- Builds on PRs will use the `small` satellite that uses `x2` rate on
build minutes
- We are using the starter tier which gives us `10000` build minutes per
month and caching for our builds to make them faster
2024-01-28 13:20:13 -06:00
Hikari (ひかり)
6e0d1ac5b8
chore: fix simple error in workflow (#27)
cargo exits with a 1 code which makes github actions bork out
2024-01-28 08:33:07 -05:00
Hikari (ひかり)
7006cd3e2b
feat: upgrades (#26)
- Add rustfmt file
- Add .cargo file for fast compiles
- use just commands and cleanup release workflows
2024-01-27 19:07:03 -05:00
Hikari (ひかり)
d347071dde
feat: add release workflows (#22) 2024-01-27 16:58:19 -05:00
Gerald Pinder
097dbb391a
fix: Improve workflow for main branch and PRs (#17)
This makes it so that the main branch will push images but PRs won't.
This also puts integration tests back in the `+all` target.
2024-01-27 11:44:54 -06:00
Gerald Pinder
67f2d34058 fix: Improper syntax for test in tag workflow 2024-01-27 09:45:21 -05:00
Hikaru (ひかる, ヒカル)
c4bf52108e
fix: tag workflow version fix (#16)
Co-authored-by: hikaru <hikaru@unknownf0a65414975d.attlocal.net>
2024-01-27 08:34:01 -05:00
Gerald Pinder
8c9a5fc5ec ci: Add token for pushing tags 2024-01-24 18:25:49 -05:00
Gerald Pinder
4d2e56292d ci: Don't fetch tags again 2024-01-24 18:15:56 -05:00
Gerald Pinder
a289739dc4 Reapply "ci: Fetch all to get history for changelog updates"
This reverts commit 9faf35e8a9.
2024-01-24 18:12:19 -05:00
Gerald Pinder
9faf35e8a9 Revert "ci: Fetch all to get history for changelog updates"
This reverts commit 8bc7cf3a0a.
2024-01-24 18:08:02 -05:00
Gerald Pinder
4858d9dc30 ci: Allow write for id-token 2024-01-24 18:01:22 -05:00
Gerald Pinder
8bc7cf3a0a ci: Fetch all to get history for changelog updates 2024-01-24 17:54:46 -05:00
Gerald Pinder
32d31fdf6c ci: Add CARGO_REGISTRY_TOKEN 2024-01-24 17:47:12 -05:00
Gerald Pinder
cf04653458 ci: Remove input for release 2024-01-24 17:38:42 -05:00
Gerald Pinder
40d6ffbdde ci: Set packages permissions to write 2024-01-23 22:52:12 -05:00
Gerald Pinder
90dbe0bded ci: Use docker/login-action@v3 2024-01-23 22:36:47 -05:00
Gerald Pinder
5849c4a23f ci: Allow workflow_dispatch on build 2024-01-23 22:27:05 -05:00
Gerald Pinder
e8e8bfa096 ci: Allow write for contents and id-token 2024-01-23 22:03:33 -05:00
N16hth4wk
99649d2d88
ci: Create GitHub Workflow (#9)
Add support for building, tagging, and releasing via CICD

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
2024-01-23 20:07:48 -05:00