mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 12:02:26 -05:00 
			
		
		
		
	* add goreleaser tooling * add files + hook * update hooks * allow passing build-dir using cli args * build tweaks * tweak more * update drone and goreleaser * chill out tests * remove postgres * docker push on snapshot * update releaser
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| set -eu
 | |
| 
 | |
| COMMIT="${COMMIT:-12345678}"
 | |
| VERSION="${VERSION:-0.0.0}"
 | |
| 
 | |
| CGO_ENABLED=0 go build -trimpath \
 | |
|                        -tags 'netgo osusergo static_build' \
 | |
|                        -ldflags="-s -w -extldflags '-static' -X 'main.Commit=${COMMIT}' -X 'main.Version=${VERSION}'" \
 | |
|                        ./cmd/gotosocial
 |