From e012803c2f2764751bff552ff3ebadf31cb7da4a Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 28 Dec 2025 02:09:16 -0800 Subject: [PATCH] Update workflow to build on all branches and tags, upgrade actions versions 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 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a672bca..2d11484 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 @@ -7,9 +7,9 @@ name: Docker on: push: - branches: [ ] + branches: [ '*' ] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + tags: [ '*' ] 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