updated .gitlab-ci.yml. tried to put pages artifacts into branch-based subfolder
This commit is contained in:
		
							parent
							
								
									c2960f11e8
								
							
						
					
					
						commit
						9edd2b6dbf
					
				
					 1 changed files with 16 additions and 38 deletions
				
			
		|  | @ -1,7 +1,6 @@ | ||||||
| stages: | stages: | ||||||
|   - build |   - build | ||||||
|   - cleanup_build |   - cleanup_build | ||||||
|   - deploy_new |  | ||||||
|   - deploy |   - deploy | ||||||
| #  - cleanup | #  - cleanup | ||||||
| 
 | 
 | ||||||
|  | @ -56,53 +55,32 @@ cleanup_build_job: | ||||||
|   when: on_failure |   when: on_failure | ||||||
| 
 | 
 | ||||||
| pages: | pages: | ||||||
|   stage: deploy_new |   stage: deploy | ||||||
|   environment: pages |   environment: staging | ||||||
|   except: |   except: | ||||||
|     - tags |     - tags | ||||||
|     - master |     - master | ||||||
|   script: |   script: | ||||||
|     - mkdir -p public/{app/converter,node_modules/{@angular,core-js/client,zone.js/dist,reflect-metadata,rxjs,systemjs/dist,utf8,quoted-printable,punycode}} |     - mkdir -p public .public/{app/converter,node_modules/{@angular,core-js/client,zone.js/dist,reflect-metadata,rxjs,systemjs/dist,utf8,quoted-printable,punycode}} | ||||||
|     - cp -a index.html abeezee-regular.woff freemono.* package.json systemjs.config.js public/ |     - cp -a index.html abeezee-regular.woff freemono.* package.json systemjs.config.js .public/ | ||||||
|     - cp -a app/*.css app/*.html app/*.js app/*.js.map public/app/ |     - cp -a app/*.css app/*.html app/*.js app/*.js.map .public/app/ | ||||||
|     - cp -a app/converter/*.js app/converter/*.js.map public/app/converter/ |     - cp -a app/converter/*.js app/converter/*.js.map .public/app/converter/ | ||||||
|     - cp -a node_modules/@angular/* public/node_modules/@angular/ |     - cp -a node_modules/@angular/* .public/node_modules/@angular/ | ||||||
|     - cp -a node_modules/core-js/client/shim.js public/node_modules/core-js/client/ |     - cp -a node_modules/core-js/client/shim.js .public/node_modules/core-js/client/ | ||||||
|     - cp -a node_modules/zone.js/dist/zone.js public/node_modules/zone.js/dist/ |     - cp -a node_modules/zone.js/dist/zone.js .public/node_modules/zone.js/dist/ | ||||||
|     - cp -a node_modules/reflect-metadata/Reflect.js public/node_modules/reflect-metadata/ |     - cp -a node_modules/reflect-metadata/Reflect.js .public/node_modules/reflect-metadata/ | ||||||
|     - cp -a node_modules/rxjs/* public/node_modules/rxjs/ |     - cp -a node_modules/rxjs/* .public/node_modules/rxjs/ | ||||||
|     - cp -a node_modules/systemjs/dist/system.src.js public/node_modules/systemjs/dist/ |     - cp -a node_modules/systemjs/dist/system.src.js .public/node_modules/systemjs/dist/ | ||||||
|     - cp -a node_modules/utf8/utf8.js public/node_modules/utf8/ |     - cp -a node_modules/utf8/utf8.js .public/node_modules/utf8/ | ||||||
|     - cp -a node_modules/quoted-printable/quoted-printable.js public/node_modules/quoted-printable/ |     - cp -a node_modules/quoted-printable/quoted-printable.js .public/node_modules/quoted-printable/ | ||||||
|     - cp -a node_modules/punycode/punycode.js public/node_modules/punycode/ |     - cp -a node_modules/punycode/punycode.js .public/node_modules/punycode/ | ||||||
|  |     - mv .public public/${CI_BUILD_REF_NAME} | ||||||
|   artifacts: |   artifacts: | ||||||
|     paths: |     paths: | ||||||
|       - public |       - public | ||||||
|   dependencies: |   dependencies: | ||||||
|     - build_job |     - build_job | ||||||
| 
 | 
 | ||||||
| develop: |  | ||||||
|   stage: deploy |  | ||||||
|   <<: *run_deploy |  | ||||||
|   environment: develop |  | ||||||
|   except: |  | ||||||
|     - tags |  | ||||||
|     - master |  | ||||||
|     - develop |  | ||||||
|   variables: |  | ||||||
|     ENVIRON: develop |  | ||||||
|     TARGET: $WWW_DEPLOY_ROOT_DEVELOP |  | ||||||
| 
 |  | ||||||
| staging: |  | ||||||
|   stage: deploy |  | ||||||
|   <<: *run_deploy |  | ||||||
|   environment: staging |  | ||||||
|   only: |  | ||||||
|     - develop |  | ||||||
|   variables: |  | ||||||
|     ENVIRON: staging |  | ||||||
|     TARGET: $WWW_DEPLOY_ROOT_STAGING |  | ||||||
| 
 |  | ||||||
| production: | production: | ||||||
|   stage: deploy |   stage: deploy | ||||||
|   <<: *run_deploy |   <<: *run_deploy | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue