Prechádzať zdrojové kódy

Trigger Docker and packages workflows only for semantic tags

Go module versioning expect Git tags to start with the letter v.

The goal is to keep the existing naming convention for generated
artifacts and have proper versioning for the Go module.
Frédéric Guillot 2 rokov pred
rodič
commit
3aad650622

+ 3 - 3
.github/workflows/docker.yml

@@ -4,7 +4,7 @@ on:
     - cron: '0 1 * * *'
     - cron: '0 1 * * *'
   push:
   push:
     tags:
     tags:
-      - '*.*.*'
+      - '[0-9]+.[0-9]+.[0-9]+'
   pull_request:
   pull_request:
     branches: [ main ]
     branches: [ main ]
 jobs:
 jobs:
@@ -79,13 +79,13 @@ jobs:
         uses: docker/setup-buildx-action@v2
         uses: docker/setup-buildx-action@v2
 
 
       - name: Login to DockerHub
       - name: Login to DockerHub
-        uses: docker/login-action@v2 
+        uses: docker/login-action@v2
         with:
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
 
 
       - name: Login to GitHub Container Registry
       - name: Login to GitHub Container Registry
-        uses: docker/login-action@v2 
+        uses: docker/login-action@v2
         with:
         with:
           registry: ghcr.io
           registry: ghcr.io
           username: ${{ github.repository_owner }}
           username: ${{ github.repository_owner }}

+ 1 - 1
.github/workflows/packages.yml

@@ -3,7 +3,7 @@ permissions: read-all
 on:
 on:
   push:
   push:
     tags:
     tags:
-      - '*.*.*'
+      - '[0-9]+.[0-9]+.[0-9]+'
 jobs:
 jobs:
   debian-package-builder:
   debian-package-builder:
     name: Build Debian Packages
     name: Build Debian Packages