소스 검색

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 년 전
부모
커밋
3aad650622
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      .github/workflows/docker.yml
  2. 1 1
      .github/workflows/packages.yml

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

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

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

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