add registry
This commit is contained in:
		
							parent
							
								
									15ec4911ea
								
							
						
					
					
						commit
						256e103451
					
				
							
								
								
									
										16
									
								
								.github/workflows/basket-api.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/basket-api.yml
									
									
									
									
										vendored
									
									
								
							@ -11,7 +11,7 @@ on:
 | 
				
			|||||||
    - src/Services/Basket/*
 | 
					    - src/Services/Basket/*
 | 
				
			||||||
    - .github/workflows/basket-api.yml
 | 
					    - .github/workflows/basket-api.yml
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  registryEndpoint:
 | 
					  registryEndpoint: hub.docker.com/repository/docker/borjasanes/eshoponcontainers
 | 
				
			||||||
  services: basket-api
 | 
					  services: basket-api
 | 
				
			||||||
  image: basket.api
 | 
					  image: basket.api
 | 
				
			||||||
  # branch: $(echo ${GITHUB_REF#refs/heads/})
 | 
					  # branch: $(echo ${GITHUB_REF#refs/heads/})
 | 
				
			||||||
@ -63,8 +63,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: Compose build ${{ env.services  }}
 | 
					    - name: Compose build ${{ env.services  }}
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
 | 
					        echo "running on ${{ env.branch }}"
 | 
				
			||||||
        echo "Env variables:"
 | 
					        echo "Env variables:"
 | 
				
			||||||
        echo "running on $env.branch"
 | 
					 | 
				
			||||||
        printenv
 | 
					        printenv
 | 
				
			||||||
        sudo docker-compose -f src/docker-compose.yml build ${{ env.services }}
 | 
					        sudo docker-compose -f src/docker-compose.yml build ${{ env.services }}
 | 
				
			||||||
        docker images
 | 
					        docker images
 | 
				
			||||||
@ -73,12 +73,12 @@ jobs:
 | 
				
			|||||||
        TAG: ${{ env.branch }}
 | 
					        TAG: ${{ env.branch }}
 | 
				
			||||||
        REGISTRY: ${{ env.registryEndpoint }}
 | 
					        REGISTRY: ${{ env.registryEndpoint }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Compose push ${{ env.image  }}
 | 
					    # - name: Compose push ${{ env.image  }}
 | 
				
			||||||
      run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }}
 | 
					    #   run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }}
 | 
				
			||||||
      shell: bash
 | 
					    #   shell: bash
 | 
				
			||||||
      env:
 | 
					    #   env:
 | 
				
			||||||
        TAG: ${{ env.branch }}
 | 
					    #     TAG: ${{ env.branch }}
 | 
				
			||||||
        REGISTRY: ${{ env.registryEndpoint }}
 | 
					    #     REGISTRY: ${{ env.registryEndpoint }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  BuildWindows:
 | 
					  BuildWindows:
 | 
				
			||||||
    runs-on: windows-2019
 | 
					    runs-on: windows-2019
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user