Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added automatic docker build on merge to master #323

Closed
wants to merge 3 commits into from

Commits on Aug 20, 2024

  1. Added automatic docker build on merge to master

    This PR includes:
    - Automatic build & push to docker hub when pushing to master, or when triggering a workflow dispatch on master
    - Automatic docker build on pull requests to validate changes
    - Updated the docker-compose.yaml to use the container images, rather than building locally
    - Added support for defining backend settings using the container environment 
      -> All options defined in config.toml can now be loaded instead from the environment
      -> Order of precedence is environment definition, config.toml, and finally default inline configuration defined in config.ts
    - Added support for defining frontend settings using the container environment
      -> Added a dynamic api route to load the container environment definitions on the server, and provide them to the client
      -> Added a library function to fetch from the newly created API, caching the response in the session storage
      -> Modified existing calls to `process.env` to use the new library function
      -> Left the initial statically compiled environment definitions in place as a backup definition, if no environment definitions are provided
    
    Remaining tasks todo before able to merge to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica):
    - Add secret definitions for `DOCKER_USERNAME` and `DOCKER_PASSWORD` to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica) to ensure push to dockerhub works on base branch
    - Update documentation with information about changes
    andypenno authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    ec158c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. Removed the API route in favour of server side rendering; Updated doc…

    …umentation to list environment variables (#9)
    
    - Use server side rendering in the `getServerEnv` library function, rather than using the API route
    - Updated `README.md` to list the relevant environment variables for the frontend and backend
    - Updated `NETWORKING.md` to reflect the changes made in `docker-compose.yaml`
    andypenno authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f6ae79b View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    5c8287b View commit details
    Browse the repository at this point in the history