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

ci: Add Docker build and push workflow for automated releases #122

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

soonhong99
Copy link
Contributor

@soonhong99 soonhong99 commented Sep 19, 2024

Description

This PR introduces a new GitHub Actions workflow for automating the Docker image build and push process for the FOSSLight Scanner project. The workflow is designed to streamline our release process and ensure consistent, multi-platform Docker images are available for each release.

Key features of this workflow:

  • Automatically triggers on release publication
  • Builds Docker images for multiple platforms (linux/amd64, linux/arm64)
  • Pushes images to DockerHub with both 'latest' and release-specific tags

This automation will significantly reduce manual effort in our release process, ensure consistency across releases, and make our Docker images more accessible to users on different platforms.

Implementation Details:

  • Added a new workflow file .github/workflows/docker-build-push.yml
  • Configured to use Docker Buildx for multi-platform builds
  • Utilizes GitHub Secrets for secure DockerHub authentication

Testing:

  • The workflow has been tested on a feature branch to ensure it correctly builds and pushes images
  • Verified that both 'latest' and release-specific tags are correctly applied

Next Steps:

  • Monitor the workflow during the next release to ensure smooth operation
  • Consider adding additional platforms if needed in the future

This change does not affect the core functionality of FOSSLight Scanner, but enhances our deployment and distribution process.

Type of change

Please insert 'x' one of the type of change.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring, Maintenance
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

* Add GitHub Actions workflow to build and push Docker images
* Configure workflow to trigger on release publication
* Set up multi-platform builds for linux/amd64 and linux/arm64
* Push images to DockerHub with 'latest' and release tag

Signed-off-by: soonhong99 <nanayah99@naver.com>
Signed-off-by: soonhong99 <nanayah99@naver.com>
Copy link

@ParkSangsin ParkSangsin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

Copy link

@persi0815 persi0815 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soimkim soimkim added the chore [PR/Issue] Refactoring, maintenance the code label Sep 28, 2024
@soimkim soimkim merged commit 15ca9b6 into fosslight:main Sep 28, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore [PR/Issue] Refactoring, maintenance the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants