Skip to content

[Enhancement] [CI] Setup Docker Build & Push Pipeline for Master Branch #41

@Manoj-14

Description

@Manoj-14

[CI] Setup Docker Build & Push Pipeline for Master Branch

Description

We need to set up a Continuous Integration (CI) pipeline to automate the containerization of our application. Currently, the build and push process is manual.

The goal is to create a GitHub Actions workflow that automatically builds the Docker image and pushes it to our Docker Registry whenever code is pushed to the master branch.

Acceptance Criteria

  • A new GitHub Actions workflow file (e.g., .github/workflows/docker-publish.yml) is created.
  • The pipeline triggers only on push events to the master branch.
  • The pipeline successfully builds the Docker image from the root Dockerfile.
  • The pipeline logs into the Docker Registry securely using repository secrets.
  • The image is tagged (e.g., with latest and the git SHA) and pushed to the registry.

Technical Details

Workflow Configuration:

  • Trigger: on: push: branches: [ "master" ]
  • Runner: ubuntu-latest
  • Required Secrets:
    • DOCKER_USERNAME
    • DOCKER_PASSWORD (or Access Token)

Metadata

Metadata

Assignees

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions