Commit Graph

53 Commits

Author SHA1 Message Date
Kostiantyn
3bc3e09467 Fix GitHub commit passing, UI build and cache for different purposes (#1239)
* Fix GitHub commit passing, UI build and cache for different purposes

* a logging for transparency and easy debug

* Fix var expanding with quotes and add intermediate verification commands

* split verification commands

* fix joining commands

* Ecplicitly pull latest deps image

* properly set arg default values and try to fix preparation step

* another try to build the image with the correct deps tag

* Revert the dynamic deps tag discovery, as it doesn't work and the actual `latest` image is pulled implicitly anyway

* Final optimizations

* "NoCommit" placeholder, indent fix, var rename

---------

Co-authored-by: Konstantin Koval
2025-07-08 17:13:20 +03:00
Kostiantyn
fafa3a3d64 Fix the local build of the dependencies image, including the debug image instructions (#1229)
* Fix the local build of the dependencies image, including the debug image instructions

* Make the deps image easily runnable

* improve readme

* Better caching strategy

* make dependency from IM to libs build stages

* fix missing folder error

* Hopefully, final solution

---------

Co-authored-by: Konstantin Koval
2025-06-29 22:41:17 +03:00
Kostiantyn
a8edb30ae4 Refactor Docker build workflows (#1221)
* Initial implementation

* Multiple fixes and improvemens

* Better `curl` retries timing

* Remove unused `TARGETOS` and `TARGETVARIANT` vars; add the version fetch fallback code to the build scripts

* Move the fallback code before the var usage

* Use double braces to make the code compatible with the `set -u`

---------

Co-authored-by: Konstantin Koval
2025-06-26 11:58:50 +03:00
Googol Lee
9d7cf8ad33 Drop linux/arm/v7 2025-05-17 09:45:39 +02:00
Kostiantyn
8f989df30a Another fix for the scheduled image build workflow for tag case (#1137)
* Try to fix the incorrect tag processing

* more debug code

* try with context=git

* hopefully, final debug

* the final commit with no debug code

---------

Co-authored-by: Konstantin Koval
2024-12-01 18:55:53 +02:00
Kostiantyn
54669fb0a8 A new try to fix the building tagged image in the scope of scheduled run (#1133)
* test putting '"' to make the resulting JSON correct

* revert the testing code and move the fixed line to its final location

---------

Co-authored-by: Konstantin Koval
2024-11-21 20:30:05 +02:00
Kostiantyn
535a3a744c Fix the config builder job for scheduled docker build workflow (#1120)
* try to fix by removing ''

* add source data for the debug

* Remove debug code

* Move the event logging before the `case`

---------

Co-authored-by: Konstantin Koval
2024-11-15 21:36:00 +02:00
Kostiantyn
7a59f3445f Fix scheduled docker build for the latest tagged commit (#1116)
* Try to fetch all history

* more debug output

* The final commit

---------

Co-authored-by: Konstantin Koval
2024-11-08 17:32:15 +02:00
Kostiantyn
0fb6636ead Switch all images to the new registry (#1109)
* Switch all images to the new registry

* Update compose files

* Update Readme

* Fix several merge issues.

---------

Co-authored-by: Konstantin Koval
2024-11-03 08:42:37 +02:00
Googol Lee
7b69f247d3 Fix gqlgen (#1105) 2024-11-02 17:05:29 +01:00
Kostiantyn
ff009a6ae6 Set $NODE_ENV according to the image purpose during Docker build (#1088)
* Set $NODE_ENV according to the image purpose during Docker build

* Move `husky` from dev-deps to prod-deps, as it is used during prod `npm ci`

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-10-04 11:20:49 +02:00
Kostiantyn
bf765abde4 Fetch all tags during checkout (#1072)
Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-10-03 13:13:59 +02:00
Kostiantyn
dee3a151e9 Update GitHub workflows with various improvements (#1028)
Updated DB images in tests to align with the PROD setup
Try to upload coverage only if tests were executed (passed or failed) - not skipped or canceled
Added ESLint execution after UI tests with results exported to artifact
Shifted scheduled run time from 00 minutes according to GitHub recommendations, as the 00 minutes of each hour is the busiest time
Dynamically extract a list of langs from the repo to use them for CodeQL analysis instead of hardcoded ones
Updated versions of several outdated actions
Added the Autobuild step before CodeQL analysis for GO
Added the Anchore dependency scan job, reporting to the Security tab. I can add steps to manage PR comments with the results, but I need a token to be provided by @viktorstrate
Added the Hadolint Dockerfile scan job, reporting to the Security tab. I can add steps to manage PR comments with the results, but I need a token to be provided by @viktorstrate
Implemented weekly rebuild of images for the latest commit in the master branch and the latest released tag. It will recreate images with the recent base image and 3rd-party dependencies even if there were no new pushes for a long time
Added the Dockle container analysis job to be run on master and tag and validate just pushed images, reporting to the Security tab
Added golangci-lint config to the /api folder, as a starting point and for local usage
Added 2 weekly jobs for Dependabot:
-- Maintain dependencies for GitHub Actions
-- Maintain dependencies for Dockerfile

---------

Co-authored-by: Konstantin Koval
2024-10-01 15:50:44 +03:00
Googol Lee
340c181442 Use self-building dependencies and update the code with imagemagick. (#1053) 2024-09-17 15:02:23 +02:00
Googol Lee
85c1e52b06 Use alpine as base images. (#1033) 2024-09-02 18:35:45 +02:00
Googol Lee
ad13172a32 Switch to Debian testing and imagemagick. (#1021) 2024-08-29 10:30:06 +02:00
Googol Lee
bb66a8b791 Fix release version and date in UI. (#1025) 2024-08-27 21:46:29 +02:00
viktorstrate
5c1f8b4632 clean up build action 2023-07-10 22:49:01 +02:00
viktorstrate
b2a79a4c9d update and simplify github build action 2023-07-10 18:57:50 +02:00
viktorstrate
831e24f654 Fix API tests 2022-07-08 17:44:03 +02:00
Robin Moser
b8eeb24586 display link to the last commit 2021-04-20 18:21:41 +02:00
Viktor Strate Kløvedal
ac8632cd82 Add event_name to docker tags in build action 2021-04-04 10:27:09 +02:00
Viktor Strate Kløvedal
8a1f2e957e Add "latest" tag when building release 2021-04-03 23:30:08 +02:00
Viktor Strate Kløvedal
a2c13d6fa1 Fix error in build action when pushing release 2021-04-03 23:13:29 +02:00
Viktor Strate Kløvedal
c7c1a3ebae Remove commas from list in build action 2021-03-30 20:13:08 +02:00
Viktor Strate Kløvedal
d7e42c8bc9 Don't escape env vars in build action 2021-03-30 20:10:25 +02:00
Viktor Strate Kløvedal
f5d44cf789 Fix syntax error in build action 2021-03-30 20:03:26 +02:00
Viktor Strate Kløvedal
1b70142ddc Cleanup unused tags after manifest is created 2021-03-30 20:00:30 +02:00
viktorstrate
1ba62ab03a Add back docker push conditions to build action 2021-03-29 12:36:14 +02:00
Viktor Strate Kløvedal
804b4576ec Push correct tags to dockerhub 2021-03-28 23:32:41 +02:00
Viktor Strate Kløvedal
aa7588145f Fix docker username variable 2021-03-28 23:15:42 +02:00
Viktor Strate Kløvedal
e2fd7a7a70 Fix typo 2021-03-28 23:11:00 +02:00
Viktor Strate Kløvedal
c432036a7f Fix syntax error 2021-03-28 23:07:06 +02:00
Viktor Strate Kløvedal
cf36b9ec8d Push individual images, combine afterwards 2021-03-28 23:03:42 +02:00
Viktor Strate Kløvedal
1543f74f6c Update load images step 2021-03-28 21:52:26 +02:00
Viktor Strate Kløvedal
41520f912a Format artifact name to not contain '/' 2021-03-28 21:46:50 +02:00
Viktor Strate Kløvedal
9d43104126 Fix path to artifact 2021-03-28 21:32:22 +02:00
Viktor Strate Kløvedal
d7bdefa42b Add missing docker build output directory 2021-03-28 21:30:20 +02:00
Viktor Strate Kløvedal
5ec05e54ea Ghactions save docker images in artifacts 2021-03-28 21:24:32 +02:00
Viktor Strate Kløvedal
3224cc8ce7 Use a ghaction matrix in docker build
to build each architecture individually
2021-03-28 19:39:22 +02:00
Viktor Strate Kløvedal
e29beea1ff Add secret to cache key
To make it possible to invalidate cache if needed
2021-03-28 19:27:25 +02:00
viktorstrate
ec2a6e4ded Remove cache restore key 2021-03-28 18:43:58 +02:00
viktorstrate
440647836e Set fixed ubuntu version for gh actions 2021-02-16 10:44:38 +01:00
viktorstrate
4cd822f068 Update gomod to reflect repo transfer 2020-12-17 22:51:43 +01:00
Viktor Strate Kløvedal
f2212988b7 Fix github actions docker builds (#152)
- Use QEMU for multiplatforms (needed after updating buildx-action)
- Cleanup Dockerfile
2020-12-09 19:24:39 +01:00
Viktor Strate Kløvedal
d4900b76d0 Replace buildx action (#151)
Replace `crazy-max/ghaction-docker-buildx@v3` with `docker/setup-buildx-action@v1`, since the old version has been archived and moved to the new one
2020-12-09 11:52:36 +01:00
viktorstrate
87b87009b5 Disable some gh actions on forks 2020-10-14 17:52:54 +02:00
viktorstrate
9939818cf0 Disable docker check manifest step
as it often returned false positives
2020-09-27 20:59:14 +02:00
Viktor Strate Kløvedal
b54b04265e Fix small mistake in github builds 2020-08-15 15:41:05 +02:00
Viktor Strate Kløvedal
fadfc396ad Add less specific versions to docker release
Eg. if version 1.2.3 is released the following tags will be updated/created `1.2.3`, `1.2`, `1`, `latest`.
2020-08-15 15:36:41 +02:00