mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-10-31 22:50:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			254 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			254 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| [ "$1" = "get" ] || exit
 | |
| 
 | |
| source "/tmp/bridgehead/secret-sync.boot-$(cat /proc/sys/kernel/random/boot_id)/gitlab-token"
 | |
| 
 | |
| # Any non-empty username works, only the token matters
 | |
| cat << EOF
 | |
| username=bk
 | |
| password=$BRIDGEHEAD_CONFIG_REPO_TOKEN
 | |
| EOF |