frontend build check: build frontend docker image (#1804)
Build the docker image to ensure image builds correctly, partially replacing local install + build (though still running tests + lint outside docker)
This commit is contained in:
		
							parent
							
								
									1ca107fa2b
								
							
						
					
					
						commit
						3280f65680
					
				
							
								
								
									
										21
									
								
								.github/workflows/frontend-build-check.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/frontend-build-check.yaml
									
									
									
									
										vendored
									
									
								
							| @ -6,6 +6,7 @@ on: | |||||||
|       - 'frontend/*.json' |       - 'frontend/*.json' | ||||||
|       - 'frontend/*.js' |       - 'frontend/*.js' | ||||||
|       - 'frontend/*.ts' |       - 'frontend/*.ts' | ||||||
|  |       - '.github/workflows/frontend-build-check.yaml' | ||||||
| jobs: | jobs: | ||||||
|   setup-and-build: |   setup-and-build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @ -44,9 +45,17 @@ jobs: | |||||||
|       - name: Localization build |       - name: Localization build | ||||||
|         working-directory: frontend |         working-directory: frontend | ||||||
|         run: yarn localize:prepare |         run: yarn localize:prepare | ||||||
|       - name: Remove non-production dependencies | 
 | ||||||
|         working-directory: frontend |       - name: Set up Docker Buildx | ||||||
|         run: yarn install --frozen-lockfile --ignore-optional --production |         uses: docker/setup-buildx-action@v2 | ||||||
|       - name: Webpack build |         with: | ||||||
|         working-directory: frontend |           driver-opts: network=host | ||||||
|         run: yarn build | 
 | ||||||
|  |       - name: Build Frontend | ||||||
|  |         uses: docker/build-push-action@v3 | ||||||
|  |         with: | ||||||
|  |           context: frontend | ||||||
|  |           load: true | ||||||
|  |           tags: webrecorder/browsertrix-frontend:latest | ||||||
|  |           cache-from: type=gha,scope=frontend | ||||||
|  |           cache-to: type=gha,scope=frontend,mode=max | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user