mirror of
				https://github.com/willfarrell/docker-crontab.git
				synced 2025-11-03 23:25:17 +01:00 
			
		
		
		
	ci: fix docker login
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -26,15 +26,15 @@ jobs:
 | 
				
			|||||||
        name: Login to DockerHub
 | 
					        name: Login to DockerHub
 | 
				
			||||||
        uses: docker/login-action@v1
 | 
					        uses: docker/login-action@v1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          username: ${{ secrets.DOCKERHUB_USERNAME }}
 | 
					          username: ${{ secrets.DOCKER_USERNAME }}
 | 
				
			||||||
          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
					          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Inject slug/short variables
 | 
					 | 
				
			||||||
        uses: rlespinasse/github-slug-action@v3.x
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - if: github.ref == 'refs/heads/main'
 | 
					      - if: github.ref == 'refs/heads/main'
 | 
				
			||||||
 | 
					        name: Conditional(Set tag as `latest`)
 | 
				
			||||||
        run: echo ::set-output name=tag::latest
 | 
					        run: echo ::set-output name=tag::latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - if: startsWith(github.ref, 'refs/tags/')
 | 
					      - if: startsWith(github.ref, 'refs/tags/')
 | 
				
			||||||
 | 
					        name: Conditional(Set tag as `{version}`)
 | 
				
			||||||
        run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
 | 
					        run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - if: env.tag
 | 
					      - if: env.tag
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user