chore: project boilerplate
This commit is contained in:
		
							parent
							
								
									e5cf23619d
								
							
						
					
					
						commit
						9dafbe26c7
					
				
					 10 changed files with 577 additions and 52 deletions
				
			
		
							
								
								
									
										23
									
								
								.woodpecker/ci.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.woodpecker/ci.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
when:
 | 
			
		||||
  event:
 | 
			
		||||
    - push
 | 
			
		||||
    - pull_request
 | 
			
		||||
  branch:
 | 
			
		||||
    - main
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
  format:
 | 
			
		||||
    image: golang:1.24
 | 
			
		||||
    commands:
 | 
			
		||||
      - make format
 | 
			
		||||
      - git diff --exit-code # Fail if files were changed
 | 
			
		||||
 | 
			
		||||
  lint:
 | 
			
		||||
    image: golang:1.24
 | 
			
		||||
    commands:
 | 
			
		||||
      - make ci-lint
 | 
			
		||||
 | 
			
		||||
  test:
 | 
			
		||||
    image: golang:1.24
 | 
			
		||||
    commands:
 | 
			
		||||
      - make test
 | 
			
		||||
							
								
								
									
										16
									
								
								.woodpecker/release.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.woodpecker/release.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
when:
 | 
			
		||||
  - event: tag
 | 
			
		||||
    branch: main
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
  - name: Release
 | 
			
		||||
    image: goreleaser/goreleaser:latest
 | 
			
		||||
    environment:
 | 
			
		||||
      GITEA_TOKEN:
 | 
			
		||||
        from_secret: GITEA_TOKEN
 | 
			
		||||
      DOCKER_HOST: unix:///var/run/docker.sock
 | 
			
		||||
    volumes:
 | 
			
		||||
      - "/var/run/docker.sock:/var/run/docker.sock"
 | 
			
		||||
    commands:
 | 
			
		||||
      - docker login -u fmartingr -p $GITEA_TOKEN git.nakama.town
 | 
			
		||||
      - goreleaser release --clean
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue