From 0a0c93539b1ac2d324605ff3f738bd5f3560cc90 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 28 Dec 2025 02:00:00 -0800 Subject: [PATCH] Update GitHub Actions workflow with newer versions and terminology changes - 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