This commit is contained in:
		
							
								
								
									
										16
									
								
								.drone.yaml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								.drone.yaml
									
									
									
									
									
								
							@ -2,18 +2,21 @@
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: docker
 | 
			
		||||
name: Build and Release
 | 
			
		||||
trigger:
 | 
			
		||||
  branch:
 | 
			
		||||
    - main
 | 
			
		||||
  event:
 | 
			
		||||
    - tag
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
  - name: Test
 | 
			
		||||
    image: golang:1.21
 | 
			
		||||
    commands:
 | 
			
		||||
      - sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
 | 
			
		||||
      - task test
 | 
			
		||||
  - name: Build & Package
 | 
			
		||||
    image: golang:1.21
 | 
			
		||||
    commands:
 | 
			
		||||
      - sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
 | 
			
		||||
      - task package
 | 
			
		||||
    when:
 | 
			
		||||
      event:
 | 
			
		||||
        - tag
 | 
			
		||||
  - name: Release
 | 
			
		||||
    image: plugins/gitea-release
 | 
			
		||||
    settings:
 | 
			
		||||
@ -23,6 +26,9 @@ steps:
 | 
			
		||||
      repo: layla/gsquash
 | 
			
		||||
      files:
 | 
			
		||||
        - ./dist/gsquash.tar.gz
 | 
			
		||||
    when:
 | 
			
		||||
      event:
 | 
			
		||||
        - tag
 | 
			
		||||
---
 | 
			
		||||
kind: secret
 | 
			
		||||
name: gitea_api_key
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user