Implement CI/CD for cv
This commit is contained in:
		
							
								
								
									
										30
									
								
								.drone.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.drone.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: kubernetes
 | 
			
		||||
name: default
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: Publish the CV
 | 
			
		||||
  when:
 | 
			
		||||
    branch:
 | 
			
		||||
      - main
 | 
			
		||||
  image: node:lts-alpine
 | 
			
		||||
  commands:
 | 
			
		||||
    - npm i -g md-to-pdf
 | 
			
		||||
    - cd cv
 | 
			
		||||
    - md-to-pdf n.rodionov.md
 | 
			
		||||
    - mkdir /out
 | 
			
		||||
    - mv n.rodionov.pdf /out
 | 
			
		||||
 | 
			
		||||
- name: Upload CV to Minio
 | 
			
		||||
  image: rclone/rclone:latest
 | 
			
		||||
  when:
 | 
			
		||||
    branch:
 | 
			
		||||
      - main
 | 
			
		||||
  environment:
 | 
			
		||||
    RCLONE_CONFIG_CONTENT:
 | 
			
		||||
      from_secret: RCLONE_CONFIG_CONTENT
 | 
			
		||||
    RCLONE_CONFIG: /tmp/rclone.conf
 | 
			
		||||
  commands:
 | 
			
		||||
    - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
 | 
			
		||||
    - rclone copy -P /out/n.rodionov.pdf badhouseplants-minio:/public-download
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								cv/myself.jpeg
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								cv/myself.jpeg
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 104 KiB  | 
										
											Binary file not shown.
										
									
								
							@@ -18,3 +18,8 @@ I'm not a victim, I'm a hero,
 | 
			
		||||
What's my superpower, 
 | 
			
		||||
I was trying to be a non-cliche kind
 | 
			
		||||
But I'm done witt the procrastination
 | 
			
		||||
Whatta hell is your vision
 | 
			
		||||
And how is it different to mine?
 | 
			
		||||
Whatta hell are your reasons
 | 
			
		||||
And how they are different to mine?
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user