Commit Graph

44 Commits

Author SHA1 Message Date
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
viktorstrate
ef6f3a331c Cleanup actions and setup docker build cache 2020-08-09 21:13:25 +02:00
viktorstrate
b12638b215 Fix docker build errors 2020-08-09 20:57:28 +02:00
viktorstrate
e71e4eb12d Work towards multi-arch docker builds 2020-08-09 20:32:02 +02:00