Compare commits

..

4 commits

Author SHA1 Message Date
86a06adc34
Merge pull request #92 from wneessen/remove_unused_files
Remove cosign files, since we use GH for Docker
2024-03-25 19:43:09 +01:00
e1b88274eb
Remove cosign files, since we use GH for Docker 2024-03-25 19:40:47 +01:00
cac191470f
Merge pull request #91 from wneessen/improve_workflow
Update workflows to trigger on specific file changes
2024-03-25 19:34:43 +01:00
0e2df1fe07
Update workflows to trigger on specific file changes
The update limits the GolangCI, Codecov, SonarQube, and Docker workflow triggers to only fire when specific related files are modified. By focusing on relevant paths like '**.go', 'go.*' and respective workflow files, we enhance the efficiency of our CI/CD process.
2024-03-25 19:32:40 +01:00
6 changed files with 27 additions and 9 deletions

View file

@ -11,7 +11,7 @@ on:
paths: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
- '.github/**' - '.github/workflow/codecov.yml'
- 'codecov.yml' - 'codecov.yml'
pull_request: pull_request:
branches: branches:
@ -19,7 +19,7 @@ on:
paths: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
- '.github/**' - '.github/workflow/codecov.yml'
- 'codecov.yml' - 'codecov.yml'
jobs: jobs:
run: run:

View file

@ -14,10 +14,20 @@ on:
- cron: '24 12 * * *' - cron: '24 12 * * *'
push: push:
branches: [ main ] branches: [ main ]
paths:
- '**.go'
- 'go.*'
- '.github/workflow/docker-publish.yml'
- 'codecov.yml'
# Publish semver tags as releases. # Publish semver tags as releases.
tags: [ 'v*.*.*' ] tags: [ 'v*.*.*' ]
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths:
- '**.go'
- 'go.*'
- '.github/workflow/docker-publish.yml'
- 'codecov.yml'
permissions: permissions:
contents: read contents: read

View file

@ -9,7 +9,17 @@ on:
- v* - v*
branches: branches:
- main - main
paths:
- '**.go'
- 'go.*'
- '.github/workflow/golangci-lint.yml'
- 'codecov.yml'
pull_request: pull_request:
paths:
- '**.go'
- 'go.*'
- '.github/workflow/golangci-lint.yml'
- 'codecov.yml'
permissions: permissions:
contents: read contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option. # Optional: allow read access to pull request. Use with `only-new-issues` option.

View file

@ -8,6 +8,11 @@ on:
push: push:
branches: branches:
- main # or the name of your main branch - main # or the name of your main branch
paths:
- '**.go'
- 'go.*'
- '.github/workflow/sonarqube.yml'
- 'codecov.yml'
jobs: jobs:
build: build:
name: Build name: Build

View file

@ -1,4 +0,0 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEyuH28HizBR9KEFKam52JO0xRXcBR
aVlJOABf0LTtqGN1XNAXXfrtVFbUqKd9MOYA62CeGn0tjCNcPNi79Y+NHw==
-----END PUBLIC KEY-----

View file

@ -1,3 +0,0 @@
SPDX-FileCopyrightText: 2021-2024 Winni Neessen <wn@neessen.dev>
SPDX-License-Identifier: CC0-1.0