Skip to content

Commit f2cb5f9

Browse files
author
Adriano Sanges
committed
Enhance GitHub Actions workflow to support version tagging
- Add support for tagging Docker images with semantic versioning based on Git tags - Introduce new tagging patterns for major and minor versioning in the Docker image metadata extraction
1 parent 072d8fd commit f2cb5f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/run-project.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- "v*.*.*"
79

810
jobs:
911
docker-build:
@@ -34,6 +36,8 @@ jobs:
3436
tags: |
3537
type=sha,format=short
3638
type=semver,pattern={{version}}
39+
type=semver,pattern={{major}}.{{minor}}
40+
type=semver,pattern={{major}}
3741
type=raw,value=latest
3842
3943
- name: Build and Push Docker image

0 commit comments

Comments
 (0)