mirror of
				https://github.com/qurator-spk/eynollah.git
				synced 2025-10-27 07:44:12 +01:00 
			
		
		
		
	add Continuous Deployment via Dockerhub and GHCR
This commit is contained in:
		
							parent
							
								
									df3510750c
								
							
						
					
					
						commit
						95a681aa8c
					
				
					 2 changed files with 50 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								.dockerignore
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.dockerignore
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | tests | ||||||
|  | dist | ||||||
|  | build | ||||||
|  | env* | ||||||
|  | *.egg-info | ||||||
|  | models_eynollah* | ||||||
							
								
								
									
										44
									
								
								.github/workflows/build-docker.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.github/workflows/build-docker.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,44 @@ | ||||||
|  | name: CD | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: [ "master" ] | ||||||
|  |   workflow_dispatch: # run manually | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  | 
 | ||||||
|  |   build: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     permissions: | ||||||
|  |       packages: write | ||||||
|  |       contents: read | ||||||
|  |     steps: | ||||||
|  |     - name: Checkout | ||||||
|  |       uses: actions/checkout@v4 | ||||||
|  |       with: | ||||||
|  |         # we need tags for docker version tagging | ||||||
|  |         fetch-tags: true | ||||||
|  |         fetch-depth: 0 | ||||||
|  |     - # Activate cache export feature to reduce build time of images | ||||||
|  |       name: Set up Docker Buildx | ||||||
|  |       uses: docker/setup-buildx-action@v3 | ||||||
|  |     - name: Login to GitHub Container Registry | ||||||
|  |       uses: docker/login-action@v3 | ||||||
|  |       with: | ||||||
|  |         registry: ghcr.io | ||||||
|  |         username: ${{ github.actor }} | ||||||
|  |         password: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |     - name: Log in to Docker Hub | ||||||
|  |       uses: docker/login-action@v3 | ||||||
|  |       with: | ||||||
|  |         username: ${{ secrets.DOCKERIO_USERNAME }} | ||||||
|  |         password: ${{ secrets.DOCKERIO_PASSWORD }} | ||||||
|  |     - name: Build the Docker image | ||||||
|  |       # build both tags at the same time | ||||||
|  |       run: make docker DOCKER_TAG="docker.io/ocrd/eynollah -t ghcr.io/qurator-spk/eynollah" | ||||||
|  |     - name: Test the Docker image | ||||||
|  |       run: docker run --rm ocrd/eynollah ocrd-eynollah-segment -h | ||||||
|  |     - name: Push to Dockerhub | ||||||
|  |       run: docker push docker.io/ocrd/eynollah | ||||||
|  |     - name: Push to Github Container Registry | ||||||
|  |       run: docker push ghcr.io/qurator-spk/eynollah | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue