Add login before build
This commit is contained in:
		
							parent
							
								
									5db1fb65b5
								
							
						
					
					
						commit
						88a4cb5624
					
				
							
								
								
									
										24
									
								
								.github/workflows/basket-api.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/basket-api.yml
									
									
									
									
										vendored
									
									
								
							| @ -16,15 +16,15 @@ env: | |||||||
|   image: basket.api |   image: basket.api | ||||||
|   branch: $(echo ${GITHUB_REF#refs/heads/}) |   branch: $(echo ${GITHUB_REF#refs/heads/}) | ||||||
| jobs: | jobs: | ||||||
|   login: |   # login: | ||||||
|     runs-on: ubuntu-latest |   #   runs-on: ubuntu-latest | ||||||
|     steps: |   #   steps: | ||||||
|       - name: Login to Container Registry |   #     - name: Login to Container Registry | ||||||
|         uses: docker/login-action@v1 |   #       uses: docker/login-action@v1 | ||||||
|         with: |   #       with: | ||||||
|           registry: ${{ env.registryEndpoint }} |   #         registry: ${{ env.registryEndpoint }} | ||||||
|           username: ${{ secrets.USERNAME }} |   #         username: ${{ secrets.USERNAME }} | ||||||
|           password: ${{ secrets.PASSWORD }} |   #         password: ${{ secrets.PASSWORD }} | ||||||
|   BuildContainersForPR_Linux: |   BuildContainersForPR_Linux: | ||||||
|     runs-on: ubuntu-16.04 |     runs-on: ubuntu-16.04 | ||||||
|     if: ${{ github.event_name == 'pull_request' }} |     if: ${{ github.event_name == 'pull_request' }} | ||||||
| @ -54,6 +54,12 @@ jobs: | |||||||
|     steps: |     steps: | ||||||
|     - name: 'Checkout Github Action' |     - name: 'Checkout Github Action' | ||||||
|       uses: actions/checkout@master |       uses: actions/checkout@master | ||||||
|  |     - name: Login to Container Registry | ||||||
|  |         uses: docker/login-action@v1 | ||||||
|  |         with: | ||||||
|  |           registry: ${{ env.registryEndpoint }} | ||||||
|  |           username: ${{ secrets.USERNAME }} | ||||||
|  |           password: ${{ secrets.PASSWORD }} | ||||||
|     - name: Compose build ${{ env.services  }} |     - name: Compose build ${{ env.services  }} | ||||||
|       run: docker-compose -f src/docker-compose.yml build ${{ env.services }} |       run: docker-compose -f src/docker-compose.yml build ${{ env.services }} | ||||||
|       shell: bash |       shell: bash | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user