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:
parent
6ea5de613c
commit
861bedcf43
1 changed files with 6 additions and 2 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue