mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Add new docker workflow for publising docker images on release
This commit is contained in:
		
							
								
								
									
										38
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					# Publish docker images to dockerhub
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					name: Docker Publish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  release:
 | 
				
			||||||
 | 
					    types: [published]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  server_image:
 | 
				
			||||||
 | 
					    name: Push InvenTree web server image to dockerhub
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Check out repo
 | 
				
			||||||
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - name: Push to Docker Hub
 | 
				
			||||||
 | 
					        uses: docker/build-push-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          username: ${{ secrets.DOCKER_USERNAME }}
 | 
				
			||||||
 | 
					          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
				
			||||||
 | 
					          repository: inventree/inventree
 | 
				
			||||||
 | 
					          tag_with_ref: true
 | 
				
			||||||
 | 
					          context: docker/inventree
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  nginx_image:
 | 
				
			||||||
 | 
					    name: Push InvenTree nginx image to dockerhub
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Check out repo
 | 
				
			||||||
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - name: Push to Docker Hub
 | 
				
			||||||
 | 
					        uses: docker/build-push-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          username: ${{ secrets.DOCKER_USERNAME }}
 | 
				
			||||||
 | 
					          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
				
			||||||
 | 
					          repository: inventree/nginx
 | 
				
			||||||
 | 
					          tag_with_ref: true
 | 
				
			||||||
 | 
					          context: docker/nginx
 | 
				
			||||||
		Reference in New Issue
	
	Block a user