mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Updates runners to Ubuntu 22.04, locks pipenv to 2022.11.30, reduces number of image cleans run
This commit is contained in:
		 Trenton Holmes
					Trenton Holmes
				
			
				
					committed by
					
						 Trenton H
						Trenton H
					
				
			
			
				
	
			
			
			 Trenton H
						Trenton H
					
				
			
						parent
						
							5e15ede849
						
					
				
				
					commit
					b0625cdced
				
			
							
								
								
									
										24
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -16,7 +16,7 @@ on: | |||||||
| jobs: | jobs: | ||||||
|   pre-commit: |   pre-commit: | ||||||
|     name: Linting Checks |     name: Linting Checks | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Checkout repository |         name: Checkout repository | ||||||
| @@ -34,7 +34,7 @@ jobs: | |||||||
|  |  | ||||||
|   documentation: |   documentation: | ||||||
|     name: "Build Documentation" |     name: "Build Documentation" | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     needs: |     needs: | ||||||
|       - pre-commit |       - pre-commit | ||||||
|     steps: |     steps: | ||||||
| @@ -44,7 +44,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Install pipenv |         name: Install pipenv | ||||||
|         run: | |         run: | | ||||||
|           pipx install pipenv==2022.10.12 |           pipx install pipenv==2022.11.30 | ||||||
|       - |       - | ||||||
|         name: Set up Python |         name: Set up Python | ||||||
|         uses: actions/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
| @@ -73,7 +73,7 @@ jobs: | |||||||
|  |  | ||||||
|   documentation-deploy: |   documentation-deploy: | ||||||
|     name: "Deploy Documentation" |     name: "Deploy Documentation" | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     if: github.event_name == 'push' && github.ref == 'refs/heads/main' |     if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||||||
|     needs: |     needs: | ||||||
|       - documentation |       - documentation | ||||||
| @@ -92,7 +92,7 @@ jobs: | |||||||
|  |  | ||||||
|   tests-backend: |   tests-backend: | ||||||
|     name: "Tests (${{ matrix.python-version }})" |     name: "Tests (${{ matrix.python-version }})" | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     needs: |     needs: | ||||||
|       - pre-commit |       - pre-commit | ||||||
|     strategy: |     strategy: | ||||||
| @@ -124,7 +124,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Install pipenv |         name: Install pipenv | ||||||
|         run: | |         run: | | ||||||
|           pipx install pipenv==2022.10.12 |           pipx install pipenv==2022.11.30 | ||||||
|       - |       - | ||||||
|         name: Set up Python |         name: Set up Python | ||||||
|         uses: actions/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
| @@ -181,7 +181,7 @@ jobs: | |||||||
|  |  | ||||||
|   tests-frontend: |   tests-frontend: | ||||||
|     name: "Tests Frontend" |     name: "Tests Frontend" | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     needs: |     needs: | ||||||
|       - pre-commit |       - pre-commit | ||||||
|     strategy: |     strategy: | ||||||
| @@ -201,7 +201,7 @@ jobs: | |||||||
|   prepare-docker-build: |   prepare-docker-build: | ||||||
|     name: Prepare Docker Pipeline Data |     name: Prepare Docker Pipeline Data | ||||||
|     if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || contains(github.ref, 'beta.rc') || startsWith(github.ref, 'refs/tags/v')) |     if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || contains(github.ref, 'beta.rc') || startsWith(github.ref, 'refs/tags/v')) | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     # If the push triggered the installer library workflow, wait for it to |     # If the push triggered the installer library workflow, wait for it to | ||||||
|     # complete here.  This ensures the required versions for the final |     # complete here.  This ensures the required versions for the final | ||||||
|     # image have been built, while not waiting at all if the versions haven't changed |     # image have been built, while not waiting at all if the versions haven't changed | ||||||
| @@ -278,7 +278,7 @@ jobs: | |||||||
|  |  | ||||||
|   # build and push image to docker hub. |   # build and push image to docker hub. | ||||||
|   build-docker-image: |   build-docker-image: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     concurrency: |     concurrency: | ||||||
|       group: ${{ github.workflow }}-build-docker-image-${{ github.ref_name }} |       group: ${{ github.workflow }}-build-docker-image-${{ github.ref_name }} | ||||||
|       cancel-in-progress: true |       cancel-in-progress: true | ||||||
| @@ -383,7 +383,7 @@ jobs: | |||||||
|   build-release: |   build-release: | ||||||
|     needs: |     needs: | ||||||
|       - build-docker-image |       - build-docker-image | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Checkout |         name: Checkout | ||||||
| @@ -462,7 +462,7 @@ jobs: | |||||||
|           path: dist/paperless-ngx.tar.xz |           path: dist/paperless-ngx.tar.xz | ||||||
|  |  | ||||||
|   publish-release: |   publish-release: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     outputs: |     outputs: | ||||||
|       prerelease: ${{ steps.get_version.outputs.prerelease }} |       prerelease: ${{ steps.get_version.outputs.prerelease }} | ||||||
|       changelog: ${{ steps.create-release.outputs.body }} |       changelog: ${{ steps.create-release.outputs.body }} | ||||||
| @@ -511,7 +511,7 @@ jobs: | |||||||
|           asset_content_type: application/x-xz |           asset_content_type: application/x-xz | ||||||
|  |  | ||||||
|   append-changelog: |   append-changelog: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     needs: |     needs: | ||||||
|       - publish-release |       - publish-release | ||||||
|     if: needs.publish-release.outputs.prerelease == 'false' |     if: needs.publish-release.outputs.prerelease == 'false' | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								.github/workflows/cleanup-tags.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/cleanup-tags.yml
									
									
									
									
										vendored
									
									
								
							| @@ -6,12 +6,7 @@ | |||||||
| name: Cleanup Image Tags | name: Cleanup Image Tags | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   schedule: |  | ||||||
|     - cron: '0 0 * * SAT' |  | ||||||
|   delete: |   delete: | ||||||
|   pull_request: |  | ||||||
|     types: |  | ||||||
|       - closed |  | ||||||
|   push: |   push: | ||||||
|     paths: |     paths: | ||||||
|       - ".github/workflows/cleanup-tags.yml" |       - ".github/workflows/cleanup-tags.yml" | ||||||
| @@ -26,7 +21,7 @@ concurrency: | |||||||
| jobs: | jobs: | ||||||
|   cleanup-images: |   cleanup-images: | ||||||
|     name: Cleanup Image Tags for ${{ matrix.primary-name }} |     name: Cleanup Image Tags for ${{ matrix.primary-name }} | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         include: |         include: | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								.github/workflows/codeql-analysis.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/codeql-analysis.yml
									
									
									
									
										vendored
									
									
								
							| @@ -23,7 +23,7 @@ on: | |||||||
| jobs: | jobs: | ||||||
|   analyze: |   analyze: | ||||||
|     name: Analyze |     name: Analyze | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     permissions: |     permissions: | ||||||
|       actions: read |       actions: read | ||||||
|       contents: read |       contents: read | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								.github/workflows/installer-library.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/installer-library.yml
									
									
									
									
										vendored
									
									
								
							| @@ -34,7 +34,7 @@ concurrency: | |||||||
| jobs: | jobs: | ||||||
|   prepare-docker-build: |   prepare-docker-build: | ||||||
|     name: Prepare Docker Image Version Data |     name: Prepare Docker Image Version Data | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-22.04 | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Set ghcr repository name |         name: Set ghcr repository name | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							| @@ -24,7 +24,7 @@ env: | |||||||
| jobs: | jobs: | ||||||
|   issue_opened_or_reopened: |   issue_opened_or_reopened: | ||||||
|     name: issue_opened_or_reopened |     name: issue_opened_or_reopened | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') |     if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') | ||||||
|     steps: |     steps: | ||||||
|       - name: Add issue to project and set status to ${{ env.todo }} |       - name: Add issue to project and set status to ${{ env.todo }} | ||||||
| @@ -37,7 +37,7 @@ jobs: | |||||||
|           status_value: ${{ env.todo }} # Target status |           status_value: ${{ env.todo }} # Target status | ||||||
|   pr_opened_or_reopened: |   pr_opened_or_reopened: | ||||||
|     name: pr_opened_or_reopened |     name: pr_opened_or_reopened | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     permissions: |     permissions: | ||||||
|       # write permission is required for autolabeler |       # write permission is required for autolabeler | ||||||
|       pull-requests: write |       pull-requests: write | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								.github/workflows/release-chart.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release-chart.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,7 @@ on: | |||||||
| jobs: | jobs: | ||||||
|   release_chart: |   release_chart: | ||||||
|     name: "Release Chart" |     name: "Release Chart" | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ concurrency: | |||||||
| jobs: | jobs: | ||||||
|   build-image: |   build-image: | ||||||
|     name: Build ${{ fromJSON(inputs.build-json).name }} @ ${{ fromJSON(inputs.build-json).version }} |     name: Build ${{ fromJSON(inputs.build-json).name }} @ ${{ fromJSON(inputs.build-json).version }} | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Checkout |         name: Checkout | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ COPY Pipfile* ./ | |||||||
|  |  | ||||||
| RUN set -eux \ | RUN set -eux \ | ||||||
|   && echo "Installing pipenv" \ |   && echo "Installing pipenv" \ | ||||||
|     && python3 -m pip install --no-cache-dir --upgrade pipenv==2022.10.12 \ |     && python3 -m pip install --no-cache-dir --upgrade pipenv==2022.11.30 \ | ||||||
|   && echo "Generating requirement.txt" \ |   && echo "Generating requirement.txt" \ | ||||||
|     && pipenv requirements > requirements.txt |     && pipenv requirements > requirements.txt | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user