Generate CV per a commit
In order to have different CV versions, I've decided to publish each CV with a commit SHA in the name. They should be put in the ./n.rodionov directory. Once the change is merged to the main, it should be copied to the root directory of a bucket without a hash in the name
This commit is contained in:
		@@ -20,9 +20,20 @@ steps:
 | 
			
		||||
      - npm install
 | 
			
		||||
      - npm run build
 | 
			
		||||
      - mkdir $CI_WORKSPACE/cv
 | 
			
		||||
      - mv index.pdf $CI_WORKSPACE/cv/n.rodionov.pdf
 | 
			
		||||
      - mv index.pdf $CI_WORKSPACE/cv/n.rodionov.$CI_COMMIT_SHA.pdf
 | 
			
		||||
 | 
			
		||||
  upload:
 | 
			
		||||
    name: Upload the CV
 | 
			
		||||
    image: rclone/rclone:latest
 | 
			
		||||
    secrets:
 | 
			
		||||
      - rclone_config_content
 | 
			
		||||
    environment:
 | 
			
		||||
      RCLONE_CONFIG: /tmp/rclone.conf
 | 
			
		||||
    commands:
 | 
			
		||||
      - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
 | 
			
		||||
      - rclone copy -P $CI_WORKSPACE/cv badhouseplants-minio:/public-download/n.rodionov
 | 
			
		||||
 | 
			
		||||
  release:
 | 
			
		||||
    when:
 | 
			
		||||
      branch: main
 | 
			
		||||
    name: Upload the CV
 | 
			
		||||
@@ -33,4 +44,4 @@ steps:
 | 
			
		||||
      RCLONE_CONFIG: /tmp/rclone.conf
 | 
			
		||||
    commands:
 | 
			
		||||
      - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
 | 
			
		||||
      - rclone copy -P $CI_WORKSPACE/cv badhouseplants-minio:/public-download
 | 
			
		||||
      - rclone copy -P badhouseplants-minio:/public-download/n.rodionov/n.rodionov.$CI_COMMIT_SHA.pdf badhouseplants-minio:/public-download/n.rodionov.pdf
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										749
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										749
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user