Commit graph

8 commits

Author SHA1 Message Date
Leonard Jonathan Oh 7183e2614e Enhancement (ci): Use separate workflow for PR docker builds
This is so the `docker` workflow status is not polluted with PR builds.
2023-11-23 22:44:01 +00:00
leo ee99590a63
Enhancement (docker): Add more archs (#1321)
* Enhancement (docker): Add `linux/arm64` arch

* Fix
2023-11-23 20:21:47 +01:00
leo 60700a56e9
Fix (docker): Use 127.0.0.1 instead of localhost to test snappymail in entrypoint.sh (#1325)
* Fix (docker): Use `127.0.0.1` instead of `localhost` to test snappymail in `entrypoint.sh`

* Run build on PR but don't push

* Login only on tags

* Fix test
2023-11-23 00:36:36 +01:00
the-djmaze 40a352c3c0 No {{sha}} in docker image names? 2023-11-22 00:08:45 +01:00
the-djmaze 9fcf2658d0 docker hub is djmaze/snappymail 2023-11-21 13:41:41 +01:00
the-djmaze 81a1b12005 Only build docker images on release tags 2023-11-21 13:12:44 +01:00
the-djmaze 366ef575f1 Remove TODO from docker workflow 2023-11-21 12:56:21 +01:00
leo 24dbff999e
Enhancement: Add Docker Hub image (#965)
* Enhancement: Add Docker Hub image

* Push to ghcr.io

* Add all `org.opencontainers.image.xxx` labels using `--label` instead of `LABEL`

* Change `php-fpm` to listen on `:9000` to expose prometheus metrics via `php-fpm_exporter`

* Include `yarn.lock` to speed up builds

* Reorder

* Use correct sha for pr

* Add logging before overriding values in config

* Add `DEBUG=true` env var for verbose `entrypoint.sh` logs

* Print php exception when snappymail fails to generate data directory and config file on the very first time

* Log snappymail version

* Fix COPY statement

* Add .dockerignore

* Add `USER` and `ENTRYPOINT`

* Update `.dockerignore`

* Add docker image test

* Push only if image test succeeds

* Log when startup is successful

* Use plain `docker build` in `build_and_test.sh`

* Fix test output
2023-11-20 15:01:26 +01:00