Dmitry Verkhoturov
a55fadd53a
make docker build fail on backend test failure
...
Previously, the commands were combined incorrectly, and the failure
of backend tests was ignored.
2023-02-05 21:11:12 +01:00
Dmitry Verkhoturov and Umputun
2bdc05dd47
remove unused entrypoint.sh
...
It should be removed after changes in 141c75401 .
2022-10-23 12:55:34 -05:00
Dmitry Verkhoturov and Umputun
a9836aaea0
move static web files from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-08-03 15:41:02 -05:00
Dmitry Verkhoturov
86d059bf99
move templates from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-07-29 19:07:49 +02:00
Dmitry Verkhoturov and Umputun
ff9eab998a
bump buildgo to 1.9.2 to be consistent with other baseimage usages
2022-07-28 16:41:15 -05:00
Dmitry Verkhoturov and Umputun
4b4c749756
remove mod=vendor from go build directives as it's no longer actual
...
It's a default in the presence of the vendor folder since Go 1.14,
https://go.dev/ref/mod
2022-07-27 22:09:14 -05:00
Dmitry Verkhoturov
f1163139d7
add docker image labels, add docker image badge to readme
...
Specification for labels:
https://github.com/opencontainers/image-spec/blob/main/annotations.md
2022-07-24 23:06:42 +02:00
Paul Mineev and Umputun
d9764c251d
workspaces
2022-07-21 18:27:33 -05:00
Dmitry Verkhoturov and Umputun
2d2f2ab02a
return docker build for frontend and backend code outside in CI
...
Previously we built a Docker image just for the test,
but the introduction of multi-arch build in 9fbf0952
build also meant the push of the image, so it was
restricted only to the master branch.
This change re-introduces the Docker image build
outside the master branch, which is helpful
in pull requests.
We recently had a few frontend PRs which broke
the Docker image build silently, and that change
prevents it from happening.
2022-07-19 19:25:54 -05:00
Paul Mineev and Umputun
8c658b7eda
fix frontend test/build in docker
2022-07-13 14:35:54 -05:00
Paul Mineev and Umputun
26d8d3daee
use pnpm lock
2022-07-13 14:00:48 -05:00
Paul Mineev and Paul Mineev
2e777ea752
switch to pnpm
2022-07-11 20:13:39 -07:00
Paul Mineev and Umputun
99716984ad
up node version, add nvmrc, recommend nvm
2022-07-02 11:48:22 -05:00
Umputun and GitHub
6309443d1f
removes .git from build layer, emulates GH build ( #1375 )
...
* removes .git from build layer, emulates GH build #269
* rundev target with git version passed in
2022-06-05 12:36:18 -05:00
Umputun and GitHub
89dc8ac6dd
Go 1.17 ( #1306 )
...
* change go mod to 1.17
* update go-pgkz and transitive deps
* bump examples to go-1.17
* bump deps
2022-04-05 11:50:45 -05:00
Dmitry Verkhoturov and Umputun
f448208475
allow skipping frontend build in Docker
...
That option allows having backend-only build,
skipping the long frontend build and test step.
Frontend developers run NodeJS locally and usually
don't need to have frontend built inside the docker image.
2022-02-15 18:30:38 -06:00
konstantin krivlenia and Umputun
188e3974bc
add support node 17
2022-02-13 23:33:41 -06:00
Umputun
6af938051a
drop drone legacy magic from artifact build
2022-01-23 16:25:24 -06:00
Umputun
33b96a4263
the same buildplatform only for node deps step
2022-01-23 16:04:14 -06:00
Umputun
2d033de224
build node things only once, on builplatform only
2022-01-23 16:02:46 -06:00
Umputun
e8bd5dfc6e
add missing args
2022-01-23 15:12:19 -06:00
Umputun
077b2d297c
switch to versions.sh instead of legacy git-rev.sh
2022-01-23 14:34:45 -06:00
Umputun
45c633776f
skip legacy drone check
2022-01-23 14:06:26 -06:00
Umputun
27888eb331
switch base images to v1.8.0
2021-12-12 17:31:21 -06:00
Dmitry Verkhoturov and Umputun
29ac37c8ea
copy init script earlier than we change /srv owner
...
That would prevent entrypoint script
(https://github.com/umputun/baseimage/blob/master/base.alpine/files/init.sh )
failure on init.sh while running as "app" and not "root"
2021-05-18 13:56:43 -05:00
Dmitry Verkhoturov and Umputun
c318e2068e
bump baseimage:app to be consistent with :buildgo
2021-05-13 11:22:16 -05:00
Dmitry Verkhoturov and Umputun
19ba43b843
dockerfile: remove dead code, bump buildgo
2021-05-07 23:27:58 -05:00
Dmitry Verkhoturov and Umputun
bec6bcee0d
use template files instead of statik in dev Dockerfile
2020-10-07 19:32:39 -05:00
Dmitry Verkhoturov and Umputun
593ca0387f
adjust dockerfile to support go test with -race, bump images
2020-10-07 19:32:39 -05:00
Umputun
4f135fe91b
switch ci and docker build to node 12
2020-08-30 21:58:48 -05:00
Umputun
87b44fa74c
switch to tagged base images
2020-05-22 14:13:05 -05:00
Umputun
ef8407b23e
typo in app image
2020-05-12 12:17:41 -05:00
Umputun
6bee151b25
switch base image
2020-05-12 12:02:13 -05:00
Pavel Mineev and Umputun
b90d076fdf
Move html to separete files
2020-05-10 23:51:13 -05:00
Umputun and GitHub
fab32ace10
Merge pull request #679 from akellbl4/frontend-scripts
...
Frontend scripts and docs updates
2020-04-13 16:49:02 -05:00
Dmitry Verkhoturov and Umputun
7151698b18
add -race key to backend tests in CI pipeline and Dockerfile
2020-04-13 16:01:51 -05:00
Pavel Mineev
7d4b6d22f0
show only warn and error messages on install without other visual noise
2020-04-13 16:08:04 +03:00
Pavel Mineev
af38a64f5c
Frontent infrastructure updates
...
* rename and combine npm scripts
* move to checkout@v2 in actions
* change dev docs
* move liststaged config to package.json because it easier to understand what husky doing
2020-04-13 14:36:19 +03:00
Konstantin Krivlenia and GitHub
11327cee5b
Introduce stylelint ( #600 )
...
* introduce stylelint config
* run stylelint check on ci
2020-02-16 11:25:59 -06:00
Umputun
4d2ed6bde4
typo in version info print
2020-01-18 22:42:51 -06:00
Umputun
3c12fde0f8
fix .golangci.yml location inside docker build
2020-01-13 18:19:57 -06:00
Stas and Umputun
b2176a175d
Use golangci lint action ( #549 )
...
* Use action insted download binary file
* Update ci
* Add config option
* Use pre-built docker image for golangci-lint-action
* Remove pre build docker action
* Update action name
* Remove env
* Update ci file
* Add working directory
* Change GITHUB_WORKSPACE
* Update ci file
* Fix ci
* Comment golangci-lint-action
* Update working-directory
* Fix path
* Update ci-build.yml
* Update path
* Revert changes
* Update .golangci.yml
* Add new path for triggers ci
* Separate steps
* Add working-directory
* Add test pwd and ls
* Fix working directory
* Update script for linting in Dockerfile
* Move .golangci.yml to dir backend
* Delete unnecessary word
* Remove multiline string
* Reformat multiline strings to single
* Update disable-all option
2020-01-13 10:56:56 -06:00
Umputun
aea7724769
populate version info to the local builds
2020-01-05 14:36:53 -06:00
Dmitry Verkhoturov
c56c39c59d
separate build and test CI workflow, separate frontend and backend tests
2020-01-04 20:53:39 +01:00
Dmitry Verkhoturov and Umputun
88e46446b6
remove empty lines from dockerfile
2020-01-04 12:53:31 -06:00
Dmitry Verkhoturov and Umputun
6f9c87850a
Adjust tests timouts to work on machine with HDD ( #516 )
...
* increase timeout for TestServerAuthHooks http client
* replace assert.Equal checks for slice length with require.Equal
* unify channel name across tests
* fix panic in Test_Main
* increase TestRest_CreateWithPictures timeout for HDD slowness
* increase TestService_VoteSameIPWithDuration timeout for HDD slowness
* increase go test timeout for HDD run
* increase TestRest_CreateWithPictures timeout for HDD slowness
2020-01-01 14:46:39 -06:00
Umputun and GitHub
37b2f48144
Actions ( #458 )
...
* remove coverage report from docker, add build and test step to actions
* install deps to actions
* formatting fix
* install go 1.13
* change linter location
2019-11-01 02:01:24 -05:00
Umputun
93c9a2e608
remove service selection
2019-10-31 23:19:57 -05:00
Umputun
a60128a957
pass GITHUB_REPOSITORY to ci
2019-10-31 22:58:46 -05:00
Umputun
3ad37810e6
add build compat with actions
2019-10-31 21:05:55 -05:00