Please update properly if you decided to move to v6.
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				CI/CD / build-and-test (push) Waiting to run
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	CI/CD / build-and-test (push) Waiting to run
				
			This commit is contained in:
		
							parent
							
								
									41ed2bdddd
								
							
						
					
					
						commit
						c124e3d0c6
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		
							
								
								
									
										12
									
								
								.github/workflows/main.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/main.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -24,6 +24,12 @@ jobs:
 | 
				
			||||||
      - name: Run unit tests
 | 
					      - name: Run unit tests
 | 
				
			||||||
        run: dotnet test tests/Guestbooky.UnitTests/Guestbooky.UnitTests.csproj
 | 
					        run: dotnet test tests/Guestbooky.UnitTests/Guestbooky.UnitTests.csproj
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Login to DockerHub
 | 
				
			||||||
 | 
					        uses: docker/login-action@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          username: ${{ secrets.DOCKER_USERNAME }}
 | 
				
			||||||
 | 
					          password: ${{ secrets.DOCKER_TOKEN }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build/push Docker image (main)
 | 
					      - name: Build/push Docker image (main)
 | 
				
			||||||
        if: github.ref == 'refs/heads/main'
 | 
					        if: github.ref == 'refs/heads/main'
 | 
				
			||||||
        uses: docker/build-push-action@v6
 | 
					        uses: docker/build-push-action@v6
 | 
				
			||||||
| 
						 | 
					@ -31,8 +37,4 @@ jobs:
 | 
				
			||||||
          context: .
 | 
					          context: .
 | 
				
			||||||
          file: build/guestbooky-be/Dockerfile
 | 
					          file: build/guestbooky-be/Dockerfile
 | 
				
			||||||
          push: true
 | 
					          push: true
 | 
				
			||||||
          tags: cotti/guestbooky-be:latest
 | 
					          tags: ${{ secrets.DOCKER_USERNAME }}/guestbooky-be:latest
 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
          DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
 | 
					 | 
				
			||||||
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
 | 
					 | 
				
			||||||
          DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue