feat(ci): add SonarQube Cloud (#1)
Reviewed-on: public/docker-dnsmasq#1
This commit was merged in pull request #1.
	This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitea/CODEOWNERS
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitea/CODEOWNERS
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
*   @luke
 | 
			
		||||
							
								
								
									
										18
									
								
								.gitea/workflows/build_docker.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.gitea/workflows/build_docker.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
name: Build Docker
 | 
			
		||||
on:
 | 
			
		||||
  release:
 | 
			
		||||
    types:
 | 
			
		||||
      - published
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  create_docker:
 | 
			
		||||
    name: Create Docker Image
 | 
			
		||||
    uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/build-push-docker.yml@main
 | 
			
		||||
    with:
 | 
			
		||||
      release: ${{ gitea.event.release.name }}
 | 
			
		||||
      registry: ${{ vars.PACKAGES_REGISTRY_URL }}
 | 
			
		||||
      actions_username: ${{ vars.ACTIONS_USERNAME }}
 | 
			
		||||
      ghcr_username: ${{ vars.GHCR_USERNAME }}
 | 
			
		||||
    secrets:
 | 
			
		||||
      ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
 | 
			
		||||
      GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
 | 
			
		||||
							
								
								
									
										22
									
								
								.gitea/workflows/ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.gitea/workflows/ci.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
name: CI
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    types:
 | 
			
		||||
      - opened
 | 
			
		||||
      - edited
 | 
			
		||||
      - synchronize
 | 
			
		||||
      - reopened
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  validate_pr_title:
 | 
			
		||||
    uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/conventional-commit.yml@main
 | 
			
		||||
    with:
 | 
			
		||||
      commit_message: ${{ gitea.event.pull_request.title }}
 | 
			
		||||
 | 
			
		||||
  ci:
 | 
			
		||||
    uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/ci-docker.yml@main
 | 
			
		||||
    with:
 | 
			
		||||
      python-version: 3.13
 | 
			
		||||
    secrets:
 | 
			
		||||
      SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
 | 
			
		||||
      SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
 | 
			
		||||
							
								
								
									
										31
									
								
								.gitea/workflows/release.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.gitea/workflows/release.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
name: Release
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
      - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    name: Test
 | 
			
		||||
    uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/ci-docker.yml@main
 | 
			
		||||
    with:
 | 
			
		||||
      python-version: 3.13
 | 
			
		||||
    secrets:
 | 
			
		||||
      SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
 | 
			
		||||
      SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  create_release:
 | 
			
		||||
    name: Create Release
 | 
			
		||||
    needs: test
 | 
			
		||||
    uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release.yml@main
 | 
			
		||||
    secrets:
 | 
			
		||||
      ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  print_release:
 | 
			
		||||
    name: Print Release
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    needs: create_release
 | 
			
		||||
    steps:
 | 
			
		||||
      - run: echo "Created release ${{ needs.create_release.outputs.release_name }}."
 | 
			
		||||
		Reference in New Issue
	
	Block a user