From 1665c205160a4d6ce527f4ced381da14f5c24915 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 28 Dec 2025 15:30:50 +0530 Subject: [PATCH 1/2] Update GitHub Actions workflow with newer versions and terminology changes (#3) - Rename workflow from "Docker" to "Container Image Build" - Update checkout action from v2 to v6 - Update docker/login-action, docker/metadata-action, and docker/build-push-action to latest commit SHAs - Change "Docker" references to "Container" in comments and step names - Modify tag pattern from 'v*.*.*' to '*v*.*.*' - Change context from '.' to './' Signed-off-by: Pratik Raj --- .github/workflows/docker-publish.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a672bca..9cd003f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,4 +1,4 @@ -name: Docker +name: Container Image Build # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by @@ -9,7 +9,7 @@ on: push: branches: [ ] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + tags: [ '*v*.*.*' ] pull_request: branches: [ ] @@ -30,32 +30,32 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v6 - # Login against a Docker registry except on PR + # Login against a Container registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' - uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Extract metadata (tags, labels) for Docker + # Extract metadata (tags, labels) for Container # https://github.com/docker/metadata-action - - name: Extract Docker metadata + - name: Extract Container metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Build and push Docker image with Buildx (don't push on PR) + # Build and push Container image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + - name: Build and push Container image + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 with: - context: . + context: ./ push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file From 2ec8d8a298793045be303218e737091008d33fb1 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 28 Dec 2025 15:41:05 +0530 Subject: [PATCH 2/2] Update workflow to build on all branches and tags, upgrade actions versions (#4) This commit updates the GitHub workflow to trigger on all branches and tags instead of being disabled. It also upgrades checkout action to v6 and updates docker actions to their latest versions. Additionally, it renames references from "Docker" to "Container" throughout the workflow for consistency. Signed-off-by: Pratik Raj --- .github/workflows/docker-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9cd003f..2d11484 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,9 +7,9 @@ name: Container Image Build on: push: - branches: [ ] + branches: [ '*' ] # Publish semver tags as releases. - tags: [ '*v*.*.*' ] + tags: [ '*' ] pull_request: branches: [ ]