From 3aad650622251ce03f2beb7d0ecbfb0cb4715ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 26 Jul 2023 20:42:08 -0700 Subject: [PATCH] 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. --- .github/workflows/docker.yml | 6 +++--- .github/workflows/packages.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c665d247..c528c380 100644 --- a/.github/workflows/docker.yml +++ b/.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 }} diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 07f96671..1049a514 100644 --- a/.github/workflows/packages.yml +++ b/.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