From 861bedcf43fb3b717a6853071ad3225639e67a48 Mon Sep 17 00:00:00 2001 From: MiscFrizzy Date: Mon, 7 Apr 2025 07:06:15 -0400 Subject: [PATCH] feat(ci): Add support for version tagging in Docker build workflow - Updated the build workflow to trigger on version tags (e.g., v1.0.0) pushed to the main branch. - Configured the Docker image to be tagged with the version and pushed to the GitHub Container Registry. - Ensured that the workflow continues to build on pushes to the develop branch and supports manual triggering. --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80f1ac6..134a6b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,9 @@ on: push: branches: - - main + - develop + tags: + - 'v*' # This will trigger the workflow for version tags like v1.0.0 workflow_dispatch: jobs: @@ -26,6 +28,8 @@ jobs: push: true file: ./Dockerfile platforms: linux/amd64 - tags: ghcr.io/pridevrinc/vrcauthproxy:latest + tags: | + ghcr.io/pridevrinc/vrcauthproxy:latest + ghcr.io/pridevrinc/vrcauthproxy:${{ github.ref }} # Push the tagged version cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file