fix: login and pull on host, not inside container
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@ -66,8 +66,8 @@ run_stack_deploy() {
 | 
			
		||||
 | 
			
		||||
  if [[ ! -z "${PLUGIN_REG_USER}" ]] && [[ ! -z "${PLUGIN_REG_PASS}" ]]; then
 | 
			
		||||
    echo "--- discovered secrets, assuming private registry, logging in ---"
 | 
			
		||||
    docker login -u "${PLUGIN_REG_USER}" -p "${PLUGIN_REG_PASS}"
 | 
			
		||||
    docker pull "${PLUGIN_IMAGE}"
 | 
			
		||||
    docker -H "$REMOTE_DOCKER_HOST" login -u "${PLUGIN_REG_USER}" -p "${PLUGIN_REG_PASS}"
 | 
			
		||||
    docker -H "$REMOTE_DOCKER_HOST" pull "${PLUGIN_IMAGE}"
 | 
			
		||||
    echo "${PLUGIN_IMAGE}"
 | 
			
		||||
    docker -H "$REMOTE_DOCKER_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
 | 
			
		||||
  else
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user