Prepare for two-step deploy: - local build and fix local tag - deploy to remote server
		
			
				
	
	
		
			22 lines
		
	
	
		
			499 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			499 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| - name: "Upload local homepage images to registry"
 | |
|   hosts: all
 | |
|   gather_facts: no
 | |
| 
 | |
|   vars_files:
 | |
|     - vars/ports.yml
 | |
|     - vars/secrets.yml
 | |
|     - vars/homepage.yml
 | |
|     - vars/homepage.images.yml
 | |
| 
 | |
|   tasks:
 | |
| 
 | |
|     - name: "Push web service image to remote registry"
 | |
|       community.docker.docker_image:
 | |
|         state: present
 | |
|         source: local
 | |
|         name: "{{ homepage_nginx_image }}"
 | |
|         repository: "{{ registry_homepage_nginx_image }}"
 | |
|         push: true
 | |
|       delegate_to: 127.0.0.1
 |