Skip to content

Commit afb57d7

Browse files
authored
Merge pull request #7 from HSLdevcom/feature/67269_Create-Docker-base-images
feat(67269): fixes
2 parents c5e2127 + 11d1eaf commit afb57d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-test-and-push.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858
needs: ci
5959

60-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
60+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
6161

6262
strategy:
6363
matrix:
@@ -91,10 +91,10 @@ jobs:
9191
with:
9292
images: hsldevcom/infodevops-docker-base-images
9393
tags: |
94-
type=edge,suffix=${{ matrix.image }},enable={{is_default_branch}}
95-
type=semver,suffix=${{ matrix.image }},pattern={{version}}
96-
type=semver,suffix=${{ matrix.image }},pattern={{major}}.{{minor}}
97-
type=semver,suffix=${{ matrix.image }},pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
94+
type=edge,suffix=-${{ matrix.image }},enable={{is_default_branch}}
95+
type=semver,suffix=-${{ matrix.image }},pattern={{version}}
96+
type=semver,suffix=-${{ matrix.image }},pattern={{major}}.{{minor}}
97+
type=semver,suffix=-${{ matrix.image }},pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
9898
labels: |
9999
org.opencontainers.image.title=${{ matrix.image }}
100100
org.opencontainers.image.vendor=hsldevcom

0 commit comments

Comments
 (0)