Skip to content

Create push-docker-image.yml#25

Merged
susrisha merged 1 commit into
developfrom
feature-docker-push
Jul 2, 2026
Merged

Create push-docker-image.yml#25
susrisha merged 1 commit into
developfrom
feature-docker-push

Conversation

@susrisha

@susrisha susrisha commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Added code to push the docker image on demand

Added a new manual GitHub Actions workflow to push the Docker image to Azure Container Registry.

  • Introduces workflow_dispatch with an environment selector for develop, staging, production, and testing
  • Resolves the selected environment into a target_env output for downstream jobs
  • Adds a build job that checks out the repo, authenticates to the registry using repo secrets/variables, sets up QEMU and Docker Buildx, and builds/pushes a linux/amd64 image
  • Tags the image using the registry/workspace name, selected environment, and commit SHA

@susrisha susrisha merged commit 5a6de5d into develop Jul 2, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2528e0dc-c386-4da8-9ab2-47090d50fc94

📥 Commits

Reviewing files that changed from the base of the PR and between 0d15a4e and abe497e.

📒 Files selected for processing (1)
  • .github/workflows/push-docker-image.yml

📝 Walkthrough

Walkthrough

Adds a new GitHub Actions workflow file that builds and pushes a Docker image to Azure Container Registry on manual trigger, mapping a selected environment input to a target environment tag combined with the commit SHA.

Changes

Docker Push Workflow

Layer / File(s) Summary
Workflow trigger and environment mapping
.github/workflows/push-docker-image.yml
Defines workflow_dispatch trigger with an environment choice input (develop, staging, production, testing) and a set-github-environment job mapping it to a target_env output (test, dev, stage, prod).
Build and push job
.github/workflows/push-docker-image.yml
Adds the build job that checks out the repo, logs into the registry, sets up QEMU and Buildx, then builds and pushes a linux/amd64 image tagged with the environment output and commit SHA.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Trigger as workflow_dispatch
  participant SetEnv as set-github-environment
  participant Build as build job
  participant Registry as Container Registry
  Trigger->>SetEnv: environment input
  SetEnv->>Build: target_env output
  Build->>Registry: login
  Build->>Build: docker/build-push-action
  Build->>Registry: push image tag with target_env + SHA
Loading

Poem

A rabbit hops to CI's door,
pushing images forevermore. 🐇
dev, stage, prod — pick your lane,
tagged with SHA, no need to explain.
Buildx hums, QEMU too,
a tidy pipeline, fresh and new!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

3 participants