mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Merge branch 'master' of https://github.com/inventree/InvenTree into feature/translation-action
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							@@ -29,6 +29,7 @@ jobs:
 | 
			
		||||
      - name: Install Dependencies
 | 
			
		||||
        run: |
 | 
			
		||||
          sudo apt-get update
 | 
			
		||||
          sudo apt-get install gettext
 | 
			
		||||
          pip3 install invoke
 | 
			
		||||
          invoke install
 | 
			
		||||
      - name: Coverage Tests
 | 
			
		||||
@@ -42,6 +43,8 @@ jobs:
 | 
			
		||||
          rm test_db.sqlite
 | 
			
		||||
          invoke migrate
 | 
			
		||||
          invoke import-records -f data.json
 | 
			
		||||
      - name: Test Translations 
 | 
			
		||||
        run: invoke translate
 | 
			
		||||
      - name: Check Migration Files
 | 
			
		||||
        run: python3 ci/check_migration_files.py
 | 
			
		||||
      - name: Upload Coverage Report
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										31
									
								
								.github/workflows/docker_build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/docker_build.yaml
									
									
									
									
										vendored
									
									
								
							@@ -1,8 +1,11 @@
 | 
			
		||||
# Test that the docker file builds correctly
 | 
			
		||||
# Build and push latest docker image on push to master branch
 | 
			
		||||
 | 
			
		||||
name: Docker
 | 
			
		||||
name: Docker Build
 | 
			
		||||
 | 
			
		||||
on: ["push", "pull_request"]
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - 'master'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  
 | 
			
		||||
@@ -10,9 +13,19 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: Build Server Image
 | 
			
		||||
        run: cd docker/inventree && docker build . --tag inventree:$(date +%s)
 | 
			
		||||
      - name: Build nginx Image
 | 
			
		||||
        run: cd docker/nginx && docker build . --tag nxinx:$(date +%s)
 | 
			
		||||
        
 | 
			
		||||
      - name: Checkout Code
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
      - name: Login to Dockerhub
 | 
			
		||||
        uses: docker/login-action@v1
 | 
			
		||||
        with:
 | 
			
		||||
          username: ${{ secrets.DOCKER_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
			
		||||
      - name: Build and Push
 | 
			
		||||
        uses: docker/build-push-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          context: ./docker
 | 
			
		||||
          push: true
 | 
			
		||||
          repository: inventree/inventree
 | 
			
		||||
          tags: inventree/inventree:latest
 | 
			
		||||
      - name: Image Digest
 | 
			
		||||
        run: echo ${{ steps.docker_build.outputs.digest }}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
								
							@@ -7,12 +7,15 @@ on:
 | 
			
		||||
    types: [published]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  server_image:
 | 
			
		||||
  publish_image:
 | 
			
		||||
    name: Push InvenTree web server image to dockerhub
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check out repo
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
      - name: cd
 | 
			
		||||
        run: |
 | 
			
		||||
          cd docker
 | 
			
		||||
      - name: Push to Docker Hub
 | 
			
		||||
        uses: docker/build-push-action@v1
 | 
			
		||||
        with:
 | 
			
		||||
@@ -20,19 +23,4 @@ jobs:
 | 
			
		||||
          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
			
		||||
          repository: inventree/inventree
 | 
			
		||||
          tag_with_ref: true
 | 
			
		||||
          dockerfile: docker/inventree/Dockerfile
 | 
			
		||||
 | 
			
		||||
  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
 | 
			
		||||
          dockerfile: docker/nginx/Dockerfile
 | 
			
		||||
          dockerfile: ./Dockerfile
 | 
			
		||||
		Reference in New Issue
	
	Block a user