mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 14:48:39 +08:00 
			
		
		
		
	Try mapping git runtime into container
This commit is contained in:
		
							parent
							
								
									7aa0640182
								
							
						
					
					
						commit
						159fd987f6
					
				
							
								
								
									
										24
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -187,18 +187,12 @@ jobs:
 | 
				
			||||||
      - name: Verify basic
 | 
					      - name: Verify basic
 | 
				
			||||||
        run: __test__/verify-basic.sh --archive
 | 
					        run: __test__/verify-basic.sh --archive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  inspect:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - name: Inspect Git Version
 | 
					 | 
				
			||||||
        run:  |
 | 
					 | 
				
			||||||
          which git
 | 
					 | 
				
			||||||
          git --version
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  test-proxy:
 | 
					  test-proxy:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: ubuntu:latest
 | 
					      image: ubuntu:latest
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					        - /usr/bin/git:/mapped/bin/git
 | 
				
			||||||
      options: --dns 127.0.0.1
 | 
					      options: --dns 127.0.0.1
 | 
				
			||||||
    services:
 | 
					    services:
 | 
				
			||||||
      squid-proxy:
 | 
					      squid-proxy:
 | 
				
			||||||
| 
						 | 
					@ -208,18 +202,8 @@ jobs:
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      https_proxy: http://squid-proxy:3128
 | 
					      https_proxy: http://squid-proxy:3128
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      # - name: Install Git
 | 
					      - name: Update System Path
 | 
				
			||||||
      #   env:
 | 
					        run:  echo "/mapped/bin" >> $GITHUB_PATH
 | 
				
			||||||
      #     https_proxy: ""  # Disable https_proxy for this single step
 | 
					 | 
				
			||||||
      #     http_proxy: ""
 | 
					 | 
				
			||||||
      #   run: |
 | 
					 | 
				
			||||||
      #     apt-get clean
 | 
					 | 
				
			||||||
      #     apt-get upgrade
 | 
					 | 
				
			||||||
      #     apt-get update
 | 
					 | 
				
			||||||
      #     # apt-get install software-properties-common
 | 
					 | 
				
			||||||
      #     # add-apt-repository ppa:git-core/ppa
 | 
					 | 
				
			||||||
      #     # apt-get update
 | 
					 | 
				
			||||||
      #     apt-get install git    
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # Clone this repo
 | 
					      # Clone this repo
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user