This commit is contained in:
		
							parent
							
								
									1a9102fb90
								
							
						
					
					
						commit
						3eca758989
					
				
					 1 changed files with 1 additions and 12 deletions
				
			
		
							
								
								
									
										13
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2,20 +2,9 @@ kind: pipeline
 | 
			
		|||
name: default
 | 
			
		||||
  
 | 
			
		||||
steps:
 | 
			
		||||
  - name: prebuild
 | 
			
		||||
    image: golang:latest
 | 
			
		||||
    commands:
 | 
			
		||||
      - IMAGE=dr.dnix.de/$DRONE_REPO_NAME
 | 
			
		||||
      - REV=$(git rev-list HEAD --count)
 | 
			
		||||
      - BUILDDATE=$(date)
 | 
			
		||||
      - BRANCH=$DRONE_COMMIT_BRANCH
 | 
			
		||||
      - TAGS=.tags
 | 
			
		||||
      - echo "Building image $IMAGE:$BRANCH-$REV"
 | 
			
		||||
      - echo -n "$BRANCH-$REV" >$TAGS
 | 
			
		||||
      - cat $TAGS
 | 
			
		||||
  - name: docker
 | 
			
		||||
    image: plugins/docker
 | 
			
		||||
    settings:
 | 
			
		||||
      repo: dr.dnix.de/${DRONE_REPO_NAME}
 | 
			
		||||
      tags:
 | 
			
		||||
        - latest
 | 
			
		||||
        - latest
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue