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.
This commit is contained in:
MiscFrizzy 2025-04-07 07:06:15 -04:00
parent 6ea5de613c
commit 861bedcf43

View file

@ -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