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

GitHub workflows for image build and helm chart release #420

Merged
merged 22 commits into from
Jun 28, 2024

Conversation

tylerobara
Copy link
Contributor

@tylerobara tylerobara commented Mar 4, 2024

I have added some GitHub workflows that will build the container images for the database, nginx and webapp. I have also added a workflow that will release the helm chart when there are changes.
Notes:

  • One workflow per image iriswebapp_db and iriswebapp_app
    • The images will pushed to ghcr.io/dfir-iris/iriswebapp_{db, app, nginx}
    • The tags will be main if there is a push to main and the tag value if there is a release, example: v2.4.6
  • Changed docker-compose.yml so that it will pull images from ghcr.io instead of building them
  • The helm chart from deploy/kubernetes will be published to a gh-pages branch. After published the chart will be available for install by running
    helm repo add dfir-iris https://dfir-iris.github.io/iris-web/
    helm upgrade --install iris dfir-iris/iris-web --values my-custom-values.yaml
    
  • Renamed nginx_ingress.yaml to ingress.yaml Reflects that the template already supports other Ingress classes such as Traefik
  • Upgraded database base image to postgres 16

Images have been tested with docker-compose and k8s deployments

REQUIREMENTS IF PR IS ACCEPTED:

  • create branch gh-pages
    • Ensure gh-pages is the default Pages branch at Settings > Pages
  • Ensure packages availability is set to public GitHub docs - packages
  • Change branch master to main GitHub docs -renaming
    • Or change workflow triggers from main to master

@whikernel whikernel changed the base branch from master to develop March 11, 2024 20:23
@whikernel
Copy link
Contributor

Thanks a lot @tylerobara - amazing 🎉

@tylerobara
Copy link
Contributor Author

I also added the part that will build for arm64 as well. I don't think I went back and tested on my Raspberry Pi though.

@whikernel whikernel self-requested a review March 11, 2024 20:52
@whikernel whikernel self-assigned this Mar 11, 2024
@whikernel whikernel added the enhancement New feature or request label Mar 11, 2024
.env.model Outdated Show resolved Hide resolved
docker/db/Dockerfile Outdated Show resolved Hide resolved
docker/db/Dockerfile Outdated Show resolved Hide resolved
.github/workflows/build-db.yml Outdated Show resolved Hide resolved
.github/workflows/build-nginx.yml Outdated Show resolved Hide resolved
.github/workflows/build-webApp.yml Outdated Show resolved Hide resolved
@bpereto
Copy link

bpereto commented May 30, 2024

can we merge this?

@whikernel whikernel merged commit 26bf43a into dfir-iris:develop Jun 28, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants