mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update all Action to new selfhosted Runner Cluster (#2739)
* Update Runner * Update Workflows
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e8e298581c
						
					
				
				
					commit
					b24860c97b
				
			
							
								
								
									
										37
									
								
								.github/workflows/create-docker-for-runner.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/create-docker-for-runner.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
			
		||||
name: Build and Publish Docker Image
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main 
 | 
			
		||||
    paths:
 | 
			
		||||
      - '.github/runner/docker/**' 
 | 
			
		||||
  schedule:
 | 
			
		||||
    - cron: '0 0 * * *'  
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest #To ensure it always builds we use the github runner with all the right tooling
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout code
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      - name: Log in to GHCR
 | 
			
		||||
        uses: docker/login-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          registry: ghcr.io
 | 
			
		||||
          username: ${{ github.actor }}
 | 
			
		||||
          password: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Build Docker image
 | 
			
		||||
        run: |
 | 
			
		||||
          repo_name=${{ github.repository }}  # Get repository name
 | 
			
		||||
          repo_name_lower=$(echo $repo_name | tr '[:upper:]' '[:lower:]')  # Convert to lowercase
 | 
			
		||||
          docker build -t ghcr.io/$repo_name_lower/gh-runner-self:latest -f .github/runner/docker/gh-runner-self.dockerfile .
 | 
			
		||||
  
 | 
			
		||||
      - name: Push Docker image to GHCR
 | 
			
		||||
        run: |
 | 
			
		||||
          repo_name=${{ github.repository }}  # Get repository name
 | 
			
		||||
          repo_name_lower=$(echo $repo_name | tr '[:upper:]' '[:lower:]')  # Convert to lowercase
 | 
			
		||||
          docker push ghcr.io/$repo_name_lower/gh-runner-self:latest
 | 
			
		||||
		Reference in New Issue
	
	Block a user