Use default template
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Publish Docker image / Push Docker image to Docker registry (push) Failing after 34s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Publish Docker image / Push Docker image to Docker registry (push) Failing after 34s
				
			This commit is contained in:
		
							parent
							
								
									cc46852c88
								
							
						
					
					
						commit
						7df4ad1f59
					
				
					 1 changed files with 22 additions and 19 deletions
				
			
		|  | @ -1,36 +1,39 @@ | ||||||
| name: Publish Docker image | name: Publish Docker image | ||||||
| 
 | 
 | ||||||
| on: [push] | on: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - 'main' | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   push_to_registry: |   push_to_registry: | ||||||
|     name: Push Docker image to Docker Hub |     name: Push Docker image to Docker registry | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     container: |  | ||||||
|       image: catthehacker/ubuntu:act-latest |  | ||||||
|     env: |     env: | ||||||
|       RUNNER_TOOL_CACHE: /toolcache |       RUNNER_TOOL_CACHE: /toolcache | ||||||
|  | 
 | ||||||
|     steps: |     steps: | ||||||
|       - name: Check out the repo |       - name: Checkout | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|        | 
 | ||||||
|       - name: Log in to the Container registry |       - name: Set up QEMU | ||||||
|         uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 |         uses: docker/setup-qemu-action@v2 | ||||||
|  | 
 | ||||||
|  |       - name: Set up Docker Buildx | ||||||
|  |         uses: docker/setup-buildx-action@v2 | ||||||
|  | 
 | ||||||
|  |       - name: Log in to Docker registry | ||||||
|  |         uses: docker/login-action@v2 | ||||||
|         with: |         with: | ||||||
|           registry: git.depeuter.dev |           registry: git.depeuter.dev | ||||||
|           username: ${{ gitea.actor }} |           username: ${{ gitea.actor }} | ||||||
|           password: ${{ secrets.APP_TOKEN }} |           password: ${{ secrets.APP_TOKEN }} | ||||||
|        | 
 | ||||||
|       - name: Extract metadata (tags, labels) for Docker |       - name: Build and push | ||||||
|         id: meta |         uses: docker/build-push-action@v4 | ||||||
|         uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 |  | ||||||
|         with: |  | ||||||
|           registry: git.depeuter.dev |  | ||||||
|           images: tdpeuter/docker-test |  | ||||||
|        |  | ||||||
|       - name: Build and push Docker image |  | ||||||
|         uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 |  | ||||||
|         with: |         with: | ||||||
|           context: . |           context: . | ||||||
|           file: ./Dockerfile |           platforms: linux/amd64,linux/arm64 | ||||||
|           push: true |           push: true | ||||||
|  |           tags: | | ||||||
|  |             tdpeuter/docker-test:latest | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue