Commit graph

7 commits

Author SHA1 Message Date
fdc8276d0e Update .forgejo/workflows/docker-master.yaml
space a bit the image creation timing
2025-06-29 06:22:58 +00:00
63c33c0771 - Remove workflow_dispatch trigger from Forgejo workflows 2025-06-25 17:28:55 +00:00
0bd84540a6 Docker Image Updates and Security Enhancements ()
# Overview
This PR introduces several improvements to our Docker infrastructure, focusing on security, base image optimization, and workflow automation.

# Key Changes

## Base Image Updates
- Updated system package installation and cleanup processes

## Security Enhancements
- Implemented Trivy security scanning in the Dockerfile
- Adjusted Trivy scan configuration to handle known Debian vulnerabilities
- Enhanced container security by ensuring proper ownership of `/workspaces` directory

## CI/CD Improvements
- Added manual workflow dispatch capability to Docker workflows
- Implemented cron scheduling for automated builds
- Enhanced Docker image configuration and build process

# Technical Details
- Trivy security scanning is now implemented using a script-based installation method
- Workflow improvements allow both scheduled and manual triggering of Docker builds

# Security Considerations
- Trivy scan exit code has been set to 0 to accommodate known Debian vulnerabilities while maintaining security awareness
- Proper directory permissions and ownership are maintained for `/workspaces`

# Impact
These changes improve our Docker image by:
- Reducing image size and improving build efficiency
- Enhancing security scanning capabilities
- Providing more flexible deployment options through manual triggers
- Ensuring consistent automated builds through cron scheduling

# Reviewer Notes
Please pay special attention to:
- The base image change and its impact on existing workflows
- Security scanning configuration
- Workflow trigger modifications

Reviewed-on: 
Co-authored-by: Guiillaume Hemmen <guillaume@van-hemmen.com>
Co-committed-by: Guiillaume Hemmen <guillaume@van-hemmen.com>
2025-06-25 17:26:37 +00:00
6095ba1cac Remove obsolete workflow and update Docker configurations
Removed the `docker-tag.yaml` workflow as it is no longer needed. Updated the destination tag format in `docker-master.yaml` and upgraded Node.js major version to 22 in the Dockerfile for compatibility and consistency.
2025-05-19 19:10:05 +02:00
34963812db Correct case in repository URLs for consistency.
Updated all instances of "GuillaumeHemmen" to "guillaumehemmen" in workflow files to ensure uniformity in repository URLs. This change prevents potential issues caused by case sensitivity in certain environments.
2025-05-19 19:07:38 +02:00
381ad5aced Update Kaniko executor image in Docker workflow
Replaced the Kaniko executor image with a self-hosted version to improve control and reliability. This ensures the workflow uses a specific version (`25.21.1`) hosted on `git.van-hemmen.com`.
2025-05-19 19:03:05 +02:00
50b53e3700 Add CI workflows for Docker image building and pushing
Introduce four workflows to automate Docker builds and pushes using Kaniko. These workflows cover push events to the `master` branch, pull requests, tag pushes, and other branches. They streamline image publishing to the specified registry with proper secrets configuration.
2025-05-19 19:01:03 +02:00