mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Make sure that goreleaser uses the appropriate version string when
building the headscale executable.
This commit is contained in:
		
							parent
							
								
									63fa475913
								
							
						
					
					
						commit
						1d81333685
					
				@ -19,7 +19,7 @@ builds:
 | 
			
		||||
    flags:
 | 
			
		||||
      - -mod=readonly
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w -X main.version={{.Version}}
 | 
			
		||||
      - -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
 | 
			
		||||
  - id: linux-armhf
 | 
			
		||||
    main: ./cmd/headscale/headscale.go
 | 
			
		||||
    mod_timestamp: '{{ .CommitTimestamp }}'
 | 
			
		||||
@ -39,7 +39,7 @@ builds:
 | 
			
		||||
    flags:
 | 
			
		||||
      - -mod=readonly
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w -X main.version={{.Version}}
 | 
			
		||||
      - -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  - id: linux-amd64
 | 
			
		||||
@ -54,6 +54,8 @@ builds:
 | 
			
		||||
      - 7
 | 
			
		||||
    main: ./cmd/headscale/headscale.go
 | 
			
		||||
    mod_timestamp: '{{ .CommitTimestamp }}'
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
 | 
			
		||||
 | 
			
		||||
archives:
 | 
			
		||||
  - id: golang-cross
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user