mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-28 12:11:08 -04:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			dark-base-
			...
			test-uffiz
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5a8e30d748 | |||
| e0e9aff6d1 | |||
| abc66dd768 | 
							
								
								
									
										9
									
								
								.github/workflows/uffizzi-build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/uffizzi-build.yml
									
									
									
									
										vendored
									
									
								
							| @ -14,8 +14,6 @@ jobs: | ||||
|     steps: | ||||
|       - name: Checkout git repo | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v2         | ||||
|       - name: Generate UUID image name | ||||
|         id: uuid | ||||
|         run: echo "UUID_TAG_APP=$(uuidgen)" >> $GITHUB_ENV | ||||
| @ -33,11 +31,10 @@ jobs: | ||||
|           tags: ${{ steps.meta.outputs.tags }} | ||||
|           labels: ${{ steps.meta.outputs.labels }} | ||||
|           file: ./uffizzi/Dockerfile | ||||
|           cache-from: type=gha | ||||
|           cache-to: type=gha,mode=max | ||||
|  | ||||
|  | ||||
|   build-nginx: | ||||
|     needs:  | ||||
|       - build-application | ||||
|     name: Build and Push `nginx` | ||||
|     runs-on: ubuntu-latest | ||||
|     if: ${{ github.event_name != 'pull_request' || github.event.action != 'closed' }} | ||||
| @ -65,6 +62,8 @@ jobs: | ||||
|           tags: ${{ steps.meta.outputs.tags }} | ||||
|           labels: ${{ steps.meta.outputs.labels }} | ||||
|           file: ./uffizzi/nginx/Dockerfile | ||||
|           build-args: | | ||||
|             BASE_IMAGE=${{ needs.build-application.outputs.tags }} | ||||
|           cache-from: type=gha | ||||
|           cache-to: type=gha,mode=max | ||||
|  | ||||
|  | ||||
| @ -12,6 +12,8 @@ | ||||
|       class="h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0" | ||||
|     > | ||||
|       <div class="pt-16 pb-16"> | ||||
|         <h1>Testing</h1> | ||||
|  | ||||
|         <router-view /> | ||||
|       </div> | ||||
|     </main> | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| <template> | ||||
|   <div class="h-screen overflow-y-auto text-base"> | ||||
|     <h1>Testing</h1> | ||||
|     <NotificationRoot /> | ||||
|  | ||||
|     <div class="container mx-auto px-4"> | ||||
|  | ||||
| @ -93,6 +93,9 @@ | ||||
|         > | ||||
|           {{ pageHeading }} | ||||
|         </h1> | ||||
|  | ||||
|         <h1>Testing</h1> | ||||
|  | ||||
|         <p | ||||
|           class=" | ||||
|             hidden | ||||
|  | ||||
| @ -11,7 +11,8 @@ RUN apt-get update && apt-get install -y \ | ||||
|     unzip \ | ||||
|     libzip-dev \ | ||||
|     libmagickwand-dev \ | ||||
|     mariadb-client | ||||
|     mariadb-client \ | ||||
|     npm | ||||
|  | ||||
| # Clear cache | ||||
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||||
| @ -45,4 +46,19 @@ RUN chmod -R 775 composer.json composer.lock \ | ||||
| RUN chown -R $(whoami):$(whoami) /var/log/ | ||||
| RUN chmod -R 775 /var/log | ||||
|  | ||||
| # Cleanup manually generated build files | ||||
| RUN rm -rf /var/www/public/build | ||||
| RUN npm config set user 0 | ||||
| RUN npm config set unsafe-perm true | ||||
| # Frontend bulding | ||||
| RUN sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' /var/www/.env | ||||
| RUN sed -i 's/DB_DATABASE=crater/DB_DATABASE=\/tmp\/crater.sqlite/g' /var/www/.env | ||||
| RUN touch /tmp/crater.sqlite | ||||
| RUN composer install --no-interaction --prefer-dist | ||||
| RUN npm i -f | ||||
| RUN npm install --save-dev sass | ||||
| RUN export NODE_OPTIONS="--max-old-space-size=4096" && /usr/bin/npx vite build --target=es2020 | ||||
| RUN sed -i 's/DB_CONNECTION=sqlite/DB_CONNECTION=mysql/g' /var/www/.env | ||||
| RUN sed -i 's/DB_DATABASE=\/tmp\/crater.sqlite/DB_DATABASE=crater/g' /var/www/.env | ||||
|  | ||||
| USER crater-user | ||||
|  | ||||
| @ -1,7 +1,9 @@ | ||||
| ARG BASE_IMAGE | ||||
|  | ||||
| FROM $BASE_IMAGE as build | ||||
| FROM nginx:1.17-alpine | ||||
|  | ||||
| RUN rm /etc/nginx/conf.d/default.conf | ||||
|  | ||||
| COPY ./ /var/www | ||||
| COPY --from=build /var/www /var/www | ||||
| COPY ./uffizzi/nginx/nginx /etc/nginx/conf.d/ | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	