Skip to content

ci: build docker image and push to container registry #52

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

Conversation

Priyanka-Microsoft
Copy link
Contributor

This pull request introduces a new workflow for building and optionally pushing Docker images. The changes include the creation of two new workflow files: one for triggering the Docker build process and another reusable workflow for the actual build and push operations.

New Workflows for Docker Build and Push

  • .github/workflows/build-docker-images.yml: This workflow is designed to trigger Docker builds on specific branches (main, dev, demo) and during specific pull request events (opened, ready_for_review, reopened, synchronize). It uses a matrix strategy to handle different applications (backend, webapp) and their respective Dockerfiles.

  • .github/workflows/build-docker.yml: This reusable workflow handles the actual Docker build and push process. It includes steps for checking out the code, logging into Docker, setting up Docker Buildx, determining the tag name based on the branch, and building and optionally pushing the Docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants