[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
Technical Details
Workflow Configuration:
- Trigger:
on: push: branches: [ "master" ]
- Runner:
ubuntu-latest
- Required Secrets:
DOCKER_USERNAME
DOCKER_PASSWORD (or Access Token)
[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
masterbranch.Acceptance Criteria
.github/workflows/docker-publish.yml) is created.masterbranch.Dockerfile.latestand the git SHA) and pushed to the registry.Technical Details
Workflow Configuration:
on: push: branches: [ "master" ]ubuntu-latestDOCKER_USERNAMEDOCKER_PASSWORD(or Access Token)